]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: has_bluestore_label checks all bluestore label replica offsets 68586/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 16 Apr 2026 07:29:23 +0000 (09:29 +0200)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 8 Jun 2026 08:15:31 +0000 (10:15 +0200)
commit97e9bd457c045fb7eb1304448254bf6f67e40d97
treef30fce8d48a7f169226a8126206927b20cb5d9a6
parente8e6cf52358772554fd8c233738b7bbc1eb7deb3
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>
(cherry picked from commit 981dfa4acef2d87938a92c1e69715e95ad7d845b)
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py