]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
bluestore: Fix _setattr() with rare memory alignments
authorAlex Ainscow <aainscow@uk.ibm.com>
Tue, 10 Jun 2025 09:54:13 +0000 (10:54 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Mon, 16 Jun 2025 07:22:43 +0000 (08:22 +0100)
commitd4e2d4977016bce22a4b9e779c5da54be2d4aaba
tree2f8c52bb3393cc6a20d04079cbdfe556256cae26
parent3c9defab46e3ea7f9b9fbd05bdae9d6597687f0a
bluestore: Fix _setattr() with rare memory alignments

Fix an issue in BlueStore_setattr whereby if a buffer was contiguous and non-partial, then bluestore could completely drop the attribute.

setattr seems to be rarely used outside of new EC. In new EC it is only
used on non-primary shards, so this was only ever seen if the non-primary
happened to be on the same OSD as the primary - this is transient and rare
that scrubbing would actually catche the issue.

Fixes: https://tracker.ceph.com/issues/71623
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/os/bluestore/BlueStore.cc