]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: has_bluestore_label checks all bluestore label replica offsets
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 16 Apr 2026 07:29:23 +0000 (09:29 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Wed, 22 Apr 2026 21:05:53 +0000 (23:05 +0200)
commit981dfa4acef2d87938a92c1e69715e95ad7d845b
tree66d2e601eb6a6c691520e02279223526ba3d1c08
parentbfcaa9f84233bb38e5ecc016055b4d699d6e23dd
ceph-volume: has_bluestore_label checks all bluestore label replica offsets

BlueStore replicates the block device label at fixed offsets (0 and
multiples of 1Gb up to 1000gb). has_bluestore_label() only read the
first 22 bytes, so disks with a wiped primary label but intact
replicas are missed.

with this commit, has_bluestore_label() scans each known offset with
seek/read and compares the ASCII prefix as bytes.

Fixes: https://tracker.ceph.com/issues/76060
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py