"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/fsck-tests/013-extent-tree-rebuild/test.sh" between
btrfs-progs-v5.4.tar.xz and btrfs-progs-v5.4.1.tar.xz

About: btrfs-progs are the userspace utilities for the Linux Btrfs filesystem.

test.sh  (btrfs-progs-v5.4.tar.xz):test.sh  (btrfs-progs-v5.4.1.tar.xz)
skipping to change at line 33 skipping to change at line 33
run_check_umount_test_dev run_check_umount_test_dev
# get extent root bytenr # get extent root bytenr
extent_root_bytenr=`$SUDO_HELPER "$TOP/btrfs" inspect-internal dump-tree -r "$TEST_DEV" | \ extent_root_bytenr=`$SUDO_HELPER "$TOP/btrfs" inspect-internal dump-tree -r "$TEST_DEV" | \
grep extent | awk '{print $7}'` grep extent | awk '{print $7}'`
if [ -z "$extent_root_bytenr" ];then if [ -z "$extent_root_bytenr" ];then
_fail "fail to get extent root bytenr" _fail "fail to get extent root bytenr"
fi fi
# corrupt extent root node block # corrupt extent root node block
run_check $SUDO_HELPER "$INTERNAL_BIN/btrfs-corrupt-block" -l "$extent_ro ot_bytenr" \ run_check $SUDO_HELPER "$TOP/btrfs-corrupt-block" -l "$extent_root_bytenr " \
-b 4096 "$TEST_DEV" -b 4096 "$TEST_DEV"
$SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV" >& /dev/null && \ $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV" >& /dev/null && \
_fail "btrfs check should detect failure" _fail "btrfs check should detect failure"
run_check $SUDO_HELPER "$TOP/btrfs" check --repair --force --init-extent- tree "$TEST_DEV" run_check $SUDO_HELPER "$TOP/btrfs" check --repair --force --init-extent- tree "$TEST_DEV"
run_check $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV" run_check $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV"
} }
test_extent_tree_rebuild test_extent_tree_rebuild
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)