mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-24 07:02:45 +00:00
btrfs-progs: fsck-test: case for corrupted dir item name
In this test case, all name in dir_item, dir_index, inode_ref are corrupted to another one. btrfs check should report errors about the corrupted dir_item but btrfs can't repair the case now. Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
7f3ba48000
commit
515ea7dc2f
BIN
tests/fsck-tests/026-bad-dir-item-name/default_case.img.xz
Normal file
BIN
tests/fsck-tests/026-bad-dir-item-name/default_case.img.xz
Normal file
Binary file not shown.
13
tests/fsck-tests/026-bad-dir-item-name/test.sh
Executable file
13
tests/fsck-tests/026-bad-dir-item-name/test.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# confirm whether check detects name and hash mismatch in dir_item
|
||||
|
||||
source "$TOP/tests/common"
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
image=$(extract_image "./default_case.img.xz")
|
||||
|
||||
run_mustfail "dir_item hash mismatch not found" "$TOP/btrfs" check "$image"
|
||||
|
||||
rm -f "$image"
|
Loading…
Reference in New Issue
Block a user