public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: convert: fix csum generation for migrated ranges
@ 2023-05-09  0:43 Qu Wenruo
  2023-05-09  0:43 ` [PATCH 1/2] btrfs-progs: convert: fix bad csum for migrated range Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Qu Wenruo @ 2023-05-09  0:43 UTC (permalink / raw)
  To: linux-btrfs

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

-- 
2.40.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-10 16:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-09  0:43 [PATCH 0/2] btrfs-progs: convert: fix csum generation for migrated ranges Qu Wenruo
2023-05-09  0:43 ` [PATCH 1/2] btrfs-progs: convert: fix bad csum for migrated range Qu Wenruo
2023-05-09  0:43 ` [PATCH 2/2] btrfs-progs: tests/convert: add a test case to check the csum for the image file Qu Wenruo
2023-05-09  1:48   ` Anand Jain
2023-05-10 16:42 ` [PATCH 0/2] btrfs-progs: convert: fix csum generation for migrated ranges David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox