mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-29 00:42:45 +00:00
b7eb8f7650
IMAGE points to the fallback image, tests should use TEST_DEV. Signed-off-by: David Sterba <dsterba@suse.com>
22 lines
615 B
Bash
Executable File
22 lines
615 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# qgroup show behaviour when quotas are not enabled
|
|
|
|
source "$TOP/tests/common"
|
|
|
|
check_prereq mkfs.btrfs
|
|
check_prereq btrfs
|
|
|
|
setup_root_helper
|
|
prepare_test_dev 2g
|
|
|
|
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
|
|
run_check_mount_test_dev
|
|
run_mayfail "$TOP/btrfs" qgroup show "$TEST_MNT"
|
|
run_mayfail $SUDO_HELPER "$TOP/btrfs" qgroup show "$TEST_MNT"
|
|
run_check $SUDO_HELPER "$TOP/btrfs" quota enable "$TEST_MNT"
|
|
run_mayfail "$TOP/btrfs" qgroup show "$TEST_MNT"
|
|
run_check $SUDO_HELPER "$TOP/btrfs" qgroup show "$TEST_MNT"
|
|
run_check $SUDO_HELPER "$TOP/btrfs" quota disable "$TEST_MNT"
|
|
run_check_umount_test_dev
|