mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 07:32:22 +00:00
btrfs-progs: tests: Introduce fsck-tests/018-leaf-crossing-stripes
To test if fsck can check detec "leaf crossing stripes". This function was introduced from patch titled: btrfs-progs: fsck: Check if a metadata tree block crossing stripe boundary Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> [renamed and other minor changes] Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
5627eee02b
commit
5f77daa6a1
BIN
tests/fsck-tests/018-leaf-crossing-stripes/default_case.raw.xz
Normal file
BIN
tests/fsck-tests/018-leaf-crossing-stripes/default_case.raw.xz
Normal file
Binary file not shown.
12
tests/fsck-tests/018-leaf-crossing-stripes/test.sh
Executable file
12
tests/fsck-tests/018-leaf-crossing-stripes/test.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
source $TOP/tests/common
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
image=$(extract_image "./default_case.raw.xz")
|
||||
run_check_stdout $TOP/btrfs check "$image" 2>&1 |
|
||||
grep -q "crossing stripe boundary" ||
|
||||
_fail "no expected error message in the output"
|
||||
|
||||
rm -f "$image"
|
Loading…
Reference in New Issue
Block a user