]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
erasure-code/consistency: Allow consistency checker to be able to deal with non-4k... 64564/head
authorJon Bailey <jonathan.bailey1@ibm.com>
Mon, 11 Aug 2025 11:51:42 +0000 (12:51 +0100)
committerJon Bailey <jonathan.bailey1@ibm.com>
Thu, 14 Aug 2025 09:29:44 +0000 (10:29 +0100)
commit13b64bd18340a05aebd7e2da76cff7b888ed8234
treed4f2a9a1f9c97c4a0b4280ead92e94102510ced3
parent30670d38dce2d37a94636078fe9bbf04ed3a260e
erasure-code/consistency: Allow consistency checker to be able to deal with non-4k aligned buffers

A parity returned to the client will be the size of shard 0, which may not be 4k aligned in optimised erasure coding. A parity returned through the encode function will always be 4k aligned. This change makes it so we truncate the encoded data down to the size of the client write before comparing them together in the consistency check so we know we are comparing them like-for-like

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
src/erasure-code/consistency/ConsistencyChecker.cc
src/erasure-code/consistency/ECEncoder.cc
src/erasure-code/consistency/ECEncoder.h
src/erasure-code/consistency/ECEncoderSwitch.cc
src/erasure-code/consistency/ECEncoderSwitch.h