]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
seastore: support validating device signature for ceph-lvm 64333/head
authorMohit Agrawal <moagrawa@redhat.com>
Thu, 3 Jul 2025 12:28:29 +0000 (17:58 +0530)
committerMohit Agrawal <moagrawa@redhat.com>
Thu, 10 Jul 2025 08:11:18 +0000 (13:41 +0530)
commit06e8fd11501daebc02f1d1ce0afd11b42ade1235
treee640c630142084fdcc28264d7a95d7f55edf7eb5
parentab417e60672d957b0523678211ab96278c8e7161
seastore: support validating device signature for ceph-lvm

Write the SEASTORE_SUPERBLOCK_SIGN at offset 0 before
encoding the superblock. If the signature is added inside
the block_sm_superblock_t structure (via DENC), it won't be
written at offset 0 because DENC encoding add some metadata.
Therefore prepend the signature to the bufferlist before
encoding the superblock sothat signature always appears at the
start of the written data

Fixes: https://tracker.ceph.com/issues/71954
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
src/crimson/os/seastore/seastore_types.h
src/crimson/os/seastore/segment_manager/block.cc