mbox series

[v2,0/3] btrfs-progs: btrfs-progs: csum-change enhancement

Message ID cover.1718946934.git.wqu@suse.com (mailing list archive)
Headers show
Series btrfs-progs: btrfs-progs: csum-change enhancement | expand

Message

Qu Wenruo June 21, 2024, 5:16 a.m. UTC
[CHANGELOG]
v2:
- Enhance the error injection detection
  Now instead of plain run_mustfail, we do check both the failure and
  the stderr.
  Only when the csum-change failed and stderr includes the injection
  cookie output, we know it's really the injection causing error.

The first two patches are small enhancement and bugfix:

- Fix a missing error handling
- Do multi-transaction csum deletion and rename
  Or we can generate GiB or even TiB level of dirty metadata.

Finally introduce a basic error injection based test case, which will:

- Check if we have error injection first
- Inject error at the end of data csum generation
- Make sure resume from above situation is correct

I'm not adding extra injections because I believe there would definitely
be corner cases that need to be fixed.

Qu Wenruo (3):
  btrfs-progs: csum-change: add error handling for search old csums
  btrfs-progs: csum-change: add leaf based threshold
  btrfs-progs: misc-tests: add a basic resume test using error injection

 .../065-csum-conversion-inject/test.sh        | 61 +++++++++++++++
 tune/change-csum.c                            | 75 +++++++++++++++----
 2 files changed, 120 insertions(+), 16 deletions(-)
 create mode 100755 tests/misc-tests/065-csum-conversion-inject/test.sh

--
2.45.2