Bug 2134431

Summary: [RFE] librbd compare-and-write fixes and vector C API
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ilya Dryomov <idryomov>
Component: RBDAssignee: Ilya Dryomov <idryomov>
Status: CLOSED ERRATA QA Contact: Preethi <pnataraj>
Severity: high Docs Contact: Eliska <ekristov>
Priority: unspecified    
Version: 6.0CC: ceph-eng-bugs, cephqe-warriors, ekristov, pasik, vereddy
Target Milestone: ---Keywords: FutureFeature
Target Release: 6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.3-53.el9cp Doc Type: Enhancement
Doc Text:
.The librbd compare-and-write operation is improved and new `rbd_aio_compare_and_writev` API method is introduced * *The semantics of compare-and-write C++ API now match those of C API.* + Previously, the compare-and-write C++ API, that is `Image::compare_and_write` and `Image::aio_compare_and_write` methods, would compare up to the size of the compare buffer. This would cause breakage after straddling a stripe unit boundary. + With this release, the compare-and-write C++ API matches the semantics of C API and both compare and write steps operate only on `len` bytes even if the respective buffers are larger. * *The compare-and-write operation is no longer limited to 512-byte sectors.* + With this release, the compare-and-write can operate on stripe units, if the access is aligned properly. The stripe units are 4 MB by default. * *New `rbd_aio_compare_and_writev` API method is now available.* + With this release, the `rbd_aio_compare_and_writev` API method is included to support scatter/gather on both compare and write buffers, which complements existing `rbd_aio_readv` and `rbd_aio_writev` methods.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-20 18:58:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2126050    

Comment 9 Preethi 2022-11-15 03:55:09 UTC
Completed. As discussed with IIya, This verification required regression and sanity coverage around RBD.

Comment 15 errata-xmlrpc 2023-03-20 18:58:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 6.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:1360