2017-01-20 16:54:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# qgroup show behaviour when quotas are not enabled
|
|
|
|
|
2017-01-24 16:59:47 +00:00
|
|
|
source "$TOP/tests/common"
|
2017-01-20 16:54:04 +00:00
|
|
|
|
|
|
|
check_prereq mkfs.btrfs
|
|
|
|
check_prereq btrfs
|
|
|
|
|
|
|
|
setup_root_helper
|
|
|
|
prepare_test_dev 2g
|
|
|
|
|
2017-03-13 16:48:55 +00:00
|
|
|
run_check "$TOP/mkfs.btrfs" -f "$TEST_DEV"
|
2017-01-20 16:54:04 +00:00
|
|
|
run_check_mount_test_dev
|
2017-01-24 16:59:47 +00:00
|
|
|
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"
|
2017-01-20 16:54:04 +00:00
|
|
|
run_check_umount_test_dev
|