2017-01-20 16:54:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# qgroup show behaviour when quotas are not enabled
|
|
|
|
|
2018-02-08 06:34:19 +00:00
|
|
|
source "$TEST_TOP/common"
|
2017-01-20 16:54:04 +00:00
|
|
|
|
|
|
|
check_prereq mkfs.btrfs
|
|
|
|
check_prereq btrfs
|
|
|
|
|
|
|
|
setup_root_helper
|
2017-10-27 13:50:34 +00:00
|
|
|
prepare_test_dev
|
2017-01-20 16:54:04 +00:00
|
|
|
|
2019-06-05 17:09:38 +00:00
|
|
|
run_check_mkfs_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"
|
2023-03-14 16:21:52 +00:00
|
|
|
run_mayfail "$TOP/btrfs" --format json qgroup show "$TEST_MNT"
|
2017-01-24 16:59:47 +00:00
|
|
|
run_mayfail $SUDO_HELPER "$TOP/btrfs" qgroup show "$TEST_MNT"
|
2023-03-14 16:21:52 +00:00
|
|
|
run_mayfail $SUDO_HELPER "$TOP/btrfs" --format json qgroup show "$TEST_MNT"
|
2017-01-24 16:59:47 +00:00
|
|
|
run_check $SUDO_HELPER "$TOP/btrfs" quota enable "$TEST_MNT"
|
|
|
|
run_mayfail "$TOP/btrfs" qgroup show "$TEST_MNT"
|
2023-03-14 16:21:52 +00:00
|
|
|
run_mayfail "$TOP/btrfs" --format json qgroup show "$TEST_MNT"
|
2017-01-24 16:59:47 +00:00
|
|
|
run_check $SUDO_HELPER "$TOP/btrfs" qgroup show "$TEST_MNT"
|
2023-03-14 16:21:52 +00:00
|
|
|
run_check $SUDO_HELPER "$TOP/btrfs" --format json qgroup show "$TEST_MNT"
|
2017-01-24 16:59:47 +00:00
|
|
|
run_check $SUDO_HELPER "$TOP/btrfs" quota disable "$TEST_MNT"
|
2017-01-20 16:54:04 +00:00
|
|
|
run_check_umount_test_dev
|