]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: Fix CBT bluefs-bdev-expand
authorAdam Kupczyk <akupczyk@ibm.com>
Wed, 16 Oct 2024 13:43:23 +0000 (13:43 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Thu, 6 Feb 2025 08:34:13 +0000 (08:34 +0000)
commitec48444fc5db8ae7d785599bc04c840fc5cd2d15
tree93068f7bf33603aa9463f23c17e3c36222bc9bef
parent5fdbd6f88b85a5eb20812e8a057bd952121f02ff
os/bluestore: Fix CBT bluefs-bdev-expand

There was a problem when expansion of 'block' device crossed location
of bdev label copy. The extra label that did not exist before and now
exist was not initialized.

Also changed logic of 'bluestore_bdev_label_require_all'.
Previously label locations 0..bdev->size() were taken in to account.
Now labels in range bdev_label.size..bdev->size() are excluded.

Fixes: https://tracker.ceph.com/issues/68577
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit f8b1495949db2a65a85aca66da4d209caa2eddd4)
src/os/bluestore/BlueStore.cc