]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Truncate coding shards to minimal size
authorAlex Ainscow <aainscow@uk.ibm.com>
Sun, 29 Jun 2025 21:54:51 +0000 (22:54 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Sun, 7 Sep 2025 23:10:41 +0000 (00:10 +0100)
commit1e299a9e4d26273ba20408f947922388afd264d5
tree3db6a099ffa2db6f3352bb107eb8292eb63598b9
parent2cde19ad6be883e2fefa822fd53b99214b161836
osd: Truncate coding shards to minimal size

Scrub detected a bug where if an object was truncated to a size where the first
shard is smaller than the chunk size (only possible for >4k chunk sizes), then
the coding shards were being aligned to the chunk size, rather than to 4k.

This fixes changes how the write plan is calculated to write the correct size.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit a39a309631482b0caa071d586f192cd19a7ae470)
src/osd/ECTransaction.cc