Skip to content

btrfs-progs: check: Detect overlapping csum item

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: check: Detect overlap csum itemscheck/main.c+9 -00 replies
2/2btrfs-progs: fsck-tests: Add test image for overlapping csum itemtests/fsck-tests/045-overlap-csum-item/overlap_csum_item.img.xz tests/fsck-tests/045-overlap-csum-item/test.sh+19 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs-progs: check: Detect overlapping csum item

There is one report about tree-checker rejecting overlapping csum item.

I haven't yet seen another report, thus the problem doesn't look widespread, thus maybe some regression in older kernels.

At least let btrfs check to detect such problem.
If we had another report, I'll spending extra time for the repair functionality (it's not that simple, as it involves a lot of csum item operation, and unexpected overlapping range).

Qu Wenruo (2):
btrfs-progs: check: Detect overlap csum items
btrfs-progs: fsck-tests: Add test image for overlapping csum item

 check/main.c                                  |   9 +++++++++
 .../overlap_csum_item.img.xz                  | Bin 0 -> 2172 bytes
 .../fsck-tests/045-overlap-csum-item/test.sh  |  19 ++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 tests/fsck-tests/045-overlap-csum-item/overlap_csum_item.img.xz
 create mode 100755 tests/fsck-tests/045-overlap-csum-item/test.sh
Signature · 1 line
2.25.1