Skip to content

btrfs-progs: fix csum metadata reservation and add a basic test case for itb

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: change-csum: fix the wrong metadata space reservationtune/change-csum.c+15 -70 replies
2/2btrfs-progs: misc-tests: add a test case for basic csum conversiontests/misc-tests/064-csum-conversion-basic/test.sh+32 -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: fix csum metadata reservation and add a basic test case for itb

The current csum conversion is using an incorrect parameter for btrfs_start_transaction(), which is 16K times larger than the expected metadata space, thus it always fail with -ENOSPC.

Fix that first, then add a basic test case using the same populate_fs() from convert test cases, and iterate through all the support csum algorithms.

Qu Wenruo (2):
btrfs-progs: change-csum: fix the wrong metadata space reservation
btrfs-progs: misc-tests: add a test case for basic csum conversion

 .../064-csum-conversion-basic/test.sh         | 32 +++++++++++++++++++
 tune/change-csum.c                            | 22 +++++++++----
 2 files changed, 47 insertions(+), 7 deletions(-)
 create mode 100755 tests/misc-tests/064-csum-conversion-basic/test.sh

--
2.45.2