btrfs-progs: fsck-test: case for corrupted dir item name
commit515ea7dc2f28794b03b64bc962da79935a29b457
authorSu Yue <suy.fnst@cn.fujitsu.com>
Fri, 14 Jul 2017 07:47:46 +0000 (14 15:47 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 24 Aug 2017 17:07:58 +0000 (24 19:07 +0200)
treecd451cbd62aa48b986e70c7067ef890043f34ab3
parent7f3ba48000997c5a11e5ab8d3438d2e10c319702
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>
tests/fsck-tests/026-bad-dir-item-name/default_case.img.xz [new file with mode: 0644]
tests/fsck-tests/026-bad-dir-item-name/test.sh [new file with mode: 0755]