Skip to content

btrfs-progs: convert: fix csum generation for migrated ranges

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: convert: fix bad csum for migrated range.convert/main.c+10 -20 replies
2/2btrfs-progs: tests/convert: add a test case to check the csum for the image filetests/convert-tests/023-64k-blocksize-migrated/test.sh+16 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAnand Jain
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs-progs: convert: fix csum generation for migrated ranges

There is an internal report that btrfs/012 failed on 64K page size systems.

It turns out that with 64K block size for ext4, even an empty ext4 can lead to csum errors for the image file.

The root cause is the bad csum generation, which read incorrect data from the disk, and leads to bad csum generated. (while the on-disk data is still correct).

This patchset would fix the bug and add a test case for it.

Qu Wenruo (2):
btrfs-progs: convert: fix bad csum for migrated range.
btrfs-progs: tests/convert: add a test case to check the csum for the
image file

 convert/main.c                                   | 12 ++++++++++--
 .../023-64k-blocksize-migrated/test.sh           | 16 ++++++++++++++++
 2 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100755 tests/convert-tests/023-64k-blocksize-migrated/test.sh
Signature · 1 line
2.40.1