]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: Implemented create-bdev-label 62148/head
authorJaya Prakash <jayaprakash@ibm.com>
Wed, 5 Mar 2025 21:56:37 +0000 (21:56 +0000)
committerJaya Prakash <jayaprakash@ibm.com>
Wed, 11 Jun 2025 09:44:23 +0000 (09:44 +0000)
commitf2faf3edb37312feb14f3255b6624ac31f73c60d
tree9ae49964ff80ad39110b32e9fbbe380d33c27556
parente7cb253bf6ea3decd3224ddb0a3231bbdd2e8728
os/bluestore: Implemented create-bdev-label

Introduces a helper function create_bdev_label() and a new command create-bdev-label
to write essential OSD metadata (e.g., fsid, whoami) directly into the device label
at offset 0, for use on devices where support_bdev_label == false.

Usage: ./bin/ceph-bluestore-tool --path dev/osd0 --dev dev/osd0/block create-bdev-label

If a label already exists, the function throws an error to avoid overwriting.

This lays the groundwork for eventually removing duplicated metadata from
the OSD directory for devices that don’t support native bdev labels

Signed-off-by: Jaya Prakash <jayaprakash@ibm.com>
doc/man/8/ceph-bluestore-tool.rst
src/os/CMakeLists.txt
src/os/bluestore/BlueEnv.cc [new file with mode: 0644]
src/os/bluestore/BlueStore.h
src/os/bluestore/bluestore_tool.cc