btrfs-progs: tests: mkfs/020: use correct device for mount

It seems to be a typo, since $dev1 was not set, and we are dealing with
TEST_DEV and not with loop devices. As this is now equivalent to the
common mount/umount helpers, use them.

Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Marcos Paulo de Souza 2019-12-05 12:36:47 -03:00 committed by David Sterba
parent 8f382bc75e
commit 4be1b09293
1 changed files with 2 additions and 2 deletions

View File

@ -19,11 +19,11 @@ test_mkfs_mount_checksum()
run_check $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super "$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 $SUDO_HELPER "$TOP/btrfs" filesystem 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