]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: Fix CBT bluefs-bdev-expand 60363/head
authorAdam Kupczyk <akupczyk@ibm.com>
Wed, 16 Oct 2024 13:43:23 +0000 (13:43 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 16 Oct 2024 19:08:24 +0000 (19:08 +0000)
commitf8b1495949db2a65a85aca66da4d209caa2eddd4
treec5167029a4934a5759ebc0f0a932d0fe2b523cfa
parentebd3d454d53d90992773eaf77180ee0c926c2c7f
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>
src/os/bluestore/BlueStore.cc