]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: fix fsck fixing multiple bdev label (superblock)
authorAdam Kupczyk <akupczyk@ibm.com>
Mon, 1 Jul 2024 13:44:41 +0000 (13:44 +0000)
committerPere Diaz Bou <pere-altea@hotmail.com>
Fri, 23 Aug 2024 09:49:25 +0000 (11:49 +0200)
commitcf4d671836b9ba799b738d2c74d25775a2a2f8bd
tree252732ac3ba0f688faae5c0d86d05c7dd267f524
parentdb7502d37bc812f5ff7a986e9bf7b1f6b4e22881
os/bluestore: fix fsck fixing multiple bdev label (superblock)

The problem was that after fixing label location,
location was not marked as "good label".
In result the region was not excluded when saving allocator state.
After reading allocator state, label was treated as corrupted.

Fixed fixing bdev label when freelist is bitmap (HDD).

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit 721482adc0de1371cf92cd4e73255ba170a2a5ac)
src/os/bluestore/BlueStore.cc
src/test/objectstore/store_test.cc