Bug 2134431 - [RFE] librbd compare-and-write fixes and vector C API
Summary: [RFE] librbd compare-and-write fixes and vector C API
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 6.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 6.0
Assignee: Ilya Dryomov
QA Contact: Preethi
Eliska
URL:
Whiteboard:
Depends On:
Blocks: 2126050
TreeView+ depends on / blocked
 
Reported: 2022-10-13 12:17 UTC by Ilya Dryomov
Modified: 2023-03-20 18:59 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2023-03-20 18:58:58 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 48474 0 None open quincy: librbd: compare-and-write fixes and vector C API 2022-10-13 12:17:19 UTC
Red Hat Issue Tracker RHCEPH-5439 0 None None None 2022-10-13 12:28:44 UTC
Red Hat Product Errata RHBA-2023:1360 0 None None None 2023-03-20 18:59:33 UTC

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


Note You need to log in before you can comment on or make changes to this bug.