diff options
-rw-r--r-- | tests/fsck-tests/012-leaf-corruption/no_data_extent.tar.xz | bin | 177600 -> 130260 bytes | |||
-rwxr-xr-x | tests/fsck-tests/012-leaf-corruption/test.sh | 11 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/fsck-tests/012-leaf-corruption/no_data_extent.tar.xz b/tests/fsck-tests/012-leaf-corruption/no_data_extent.tar.xz Binary files differindex cc90b58e..547e5455 100644 --- a/tests/fsck-tests/012-leaf-corruption/no_data_extent.tar.xz +++ b/tests/fsck-tests/012-leaf-corruption/no_data_extent.tar.xz diff --git a/tests/fsck-tests/012-leaf-corruption/test.sh b/tests/fsck-tests/012-leaf-corruption/test.sh index 6e231451..830fd8d5 100755 --- a/tests/fsck-tests/012-leaf-corruption/test.sh +++ b/tests/fsck-tests/012-leaf-corruption/test.sh @@ -29,6 +29,7 @@ leaf_no_data_ext_list=( 1869 0 40700 "snmp" 1871 0 100700 "machine-id" 1872 0 100700 "adjtime" + 1877 0 40700 "del" ) generate_leaf_corrupt_no_data_ext() @@ -40,10 +41,12 @@ generate_leaf_corrupt_no_data_ext() $TOP/btrfs-image -r test.img.btrfs-image $dest || \ _fail "failed to extract leaf_corrupt_no_data_ext.btrfs-image" - # leaf at 20832256 contains no regular data extent, clear its csum to - # corrupt the leaf. - dd if=/dev/zero of=$dest bs=1 count=32 conv=notrunc seek=20832256 \ - 1>/dev/null 2>&1 + # leaf at 4206592 and 20905984 contains no regular data + # extent, clear its csum to corrupt the leaf. + for x in 4206592 20905984; do + dd if=/dev/zero of=$dest bs=1 count=32 conv=notrunc seek=$x \ + 1>/dev/null 2>&1 + done } check_inode() |