"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/mkfs-tests/020-basic-checksums-mount/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 15 skipping to change at line 15
source "$TEST_TOP/common" source "$TEST_TOP/common"
check_prereq mkfs.btrfs check_prereq mkfs.btrfs
check_prereq btrfs check_prereq btrfs
setup_root_helper setup_root_helper
prepare_test_dev prepare_test_dev
test_mkfs_mount_checksum() test_mkfs_mount_checksum()
{ {
local csum
csum="$1"
run_check_stdout $SUDO_HELPER "$TOP/mkfs.btrfs" -f --csum "$csum" "$TEST_ DEV" | grep -q "Checksum:.*$csum" run_check_stdout $SUDO_HELPER "$TOP/mkfs.btrfs" -f --csum "$csum" "$TEST_ DEV" | grep -q "Checksum:.*$csum"
run_check $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super "$TEST_DE V" run_check $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super "$TEST_DE V"
run_check $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV" run_check $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV"
run_check $SUDO_HELPER mount "$dev1" "$TEST_MNT" run_check_mount_test_dev
run_check "$TOP/btrfs" filesystem df "$TEST_MNT" run_check "$TOP/btrfs" filesystem df "$TEST_MNT"
run_check $SUDO_HELPER "$TOP/btrfs" filesystem usage "$TEST_MNT" run_check $SUDO_HELPER "$TOP/btrfs" filesystem usage "$TEST_MNT"
run_check $SUDO_HELPER "$TOP/btrfs" device usage "$TEST_MNT" run_check $SUDO_HELPER "$TOP/btrfs" device usage "$TEST_MNT"
run_check $SUDO_HELPER umount "$TEST_MNT" run_check_umount_test_dev
} }
if ! [ -f "/sys/fs/btrfs/features/supported_checksums" ]; then if ! [ -f "/sys/fs/btrfs/features/supported_checksums" ]; then
_not_run "kernel support for checksums missing" _not_run "kernel support for checksums missing"
fi fi
test_mkfs_mount_checksum crc32c test_mkfs_mount_checksum crc32c
test_mkfs_mount_checksum xxhash test_mkfs_mount_checksum xxhash
test_mkfs_mount_checksum sha256 test_mkfs_mount_checksum sha256
test_mkfs_mount_checksum blake2 test_mkfs_mount_checksum blake2
 End of changes. 3 change blocks. 
2 lines changed or deleted 5 lines changed or added

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