public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: tune: fix the leftover csum change item and add a test case for it
@ 2023-05-23  0:37 Qu Wenruo
  2023-05-23  0:37 ` [PATCH 1/2] btrfs-progs: tune: delete the csum change item after converting the fs Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Qu Wenruo @ 2023-05-23  0:37 UTC (permalink / raw)
  To: linux-btrfs

David's cyclic csum change tests exposed a bug even with the latest csum
change code, that I'm a total idiot and forgot to delete the csum change
item.

This results a bug that if we have run multiple csum changes to the same
target csum type (e.g. CRC32C->SHA256->CRC32C->SHA256), the second
conversion to the same type would fail due to the left over csum change items.

This series would do the fix and add a test case to cover this bug.

Qu Wenruo (2):
  btrfs-progs: tune: delete the csum change item after converting the fs
  btrfs-progs: tests/misc: add a test case for csum change

 .../058-btrfstune-csum-change/test.sh         | 26 ++++++++++++
 tune/change-csum.c                            | 42 +++++++++++++++++--
 2 files changed, 64 insertions(+), 4 deletions(-)
 create mode 100755 tests/misc-tests/058-btrfstune-csum-change/test.sh

-- 
2.40.1


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

end of thread, other threads:[~2023-05-23 11:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23  0:37 [PATCH 0/2] btrfs-progs: tune: fix the leftover csum change item and add a test case for it Qu Wenruo
2023-05-23  0:37 ` [PATCH 1/2] btrfs-progs: tune: delete the csum change item after converting the fs Qu Wenruo
2023-05-23  0:37 ` [PATCH 2/2] btrfs-progs: tests/misc: add a test case for csum change Qu Wenruo
2023-05-23 10:46 ` [PATCH 0/2] btrfs-progs: tune: fix the leftover csum change item and add a test case for it David Sterba
2023-05-23 11:00   ` Qu Wenruo

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