btrfs-progs: convert: fix csum generation for migrated ranges
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs-progs: convert: fix bad csum for migrated range.convert/ | +10 | 0 replies | |
| 2/2 | btrfs-progs: tests/convert: add a test case to check the csum for the image filetests/ | +16 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Anand Jain |
|---|---|
| 1/2 | |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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