mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
b18191a1d0
xfs/106 is testing basic functions of xfs_quota command, but there're three problems prevent people from running it as a reliable regression test (i.e. it's not in 'auto' group): - It tests unavailable commands in current xfs_quota, e.g. "warn" - Lack of test coverage of important commands, e.g. "disable, enable, off and remove" commands - Test output doesn't match golden image So rewrite this case to test as many xfs_quota sub-commands and options as possible and add it to 'auto' group, except: - some "-v" options - all "-a" options, because it's hard to get deterministic output - default quota, this should be already covered by other tests - project command options, I will write another case to test it - report command -l option, which is a new option and will cause failure when testing with xfsprogs prior to 3.1 version. - quot command -c option, which may output different histogram in different systems or hosts. - warn command, which is not currently implemented. - print, df, free, help, quit and path commands. Signed-off-by: Zorro Lang <zlang@redhat.com> Reviewed-by: Eryu Guan <eguan@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
494 lines
15 KiB
Plaintext
494 lines
15 KiB
Plaintext
QA output created by 106
|
|
----------------------- uquota,sync ---------------------------
|
|
init quota limit and timer, and dump it
|
|
create_files 1024k 15
|
|
quota remount
|
|
|
|
checking quot command (type=u)
|
|
SCRATCH_DEV (SCRATCH_MNT) User:
|
|
1024 15 fsgqa
|
|
|
|
checking timer command (type=u)
|
|
|
|
checking limit command (type=u, bsoft=512k, bhard=2048k, isoft=10, ihard=20)
|
|
|
|
checking dump command (type=u)
|
|
report options test
|
|
|
|
checking report command (type=u)
|
|
User quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
User ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-N option
|
|
checking report command (type=u)
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-L -U options
|
|
checking report command (type=u)
|
|
User quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
User ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
#ID 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-t option
|
|
checking report command (type=u)
|
|
User quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
User ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-n option
|
|
checking report command (type=u)
|
|
User quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
User ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
#ID 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-h option
|
|
checking report command (type=u)
|
|
User quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
User ID Used Soft Hard Warn/Grace Used Soft Hard Warn/Grace
|
|
---------- --------------------------------- ---------------------------------
|
|
fsgqa 1M 512K 2M 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
quot options test
|
|
|
|
checking quot command (type=u)
|
|
SCRATCH_DEV (SCRATCH_MNT) User:
|
|
1024 15 fsgqa
|
|
-f option
|
|
checking quot command (type=u)
|
|
SCRATCH_DEV (SCRATCH_MNT) User:
|
|
1024 15 fsgqa
|
|
-n option
|
|
checking quot command (type=u)
|
|
SCRATCH_DEV (SCRATCH_MNT) User:
|
|
1024 15 #ID
|
|
|
|
checking quota command (type=u)
|
|
Disk quotas for User fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-f option
|
|
checking quota command (type=u)
|
|
Disk quotas for User fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-N option
|
|
checking quota command (type=u)
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-n option
|
|
checking quota command (type=u)
|
|
Disk quotas for User #ID (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-h option
|
|
checking quota command (type=u)
|
|
Disk quotas for User fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1M 512K 2M 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
disable quota
|
|
|
|
checking disable command (type=u)
|
|
User quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: OFF
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [3 days]
|
|
Inodes grace time: [3 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
|
|
checking report command (type=u)
|
|
fsgqa 1024 512 2048 00 [--------] 15 10 20 00 [--------]
|
|
|
|
expect a remove error at here
|
|
checking remove command (type=u)
|
|
XFS_QUOTARM: Invalid argument
|
|
|
|
checking enable command (type=u)
|
|
User quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: ON
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [3 days]
|
|
Inodes grace time: [3 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
|
|
checking report command (type=u)
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
off and remove test
|
|
|
|
checking limit command (type=u, bsoft=100m, bhard=100m, isoft=100, ihard=100)
|
|
|
|
checking quota command (type=u)
|
|
SCRATCH_DEV 1024 102400 102400 00 [--------] 15 100 100 00 [--------] SCRATCH_MNT
|
|
|
|
checking off command (type=u)
|
|
User quota are not enabled on SCRATCH_DEV
|
|
|
|
checking state command (type=u)
|
|
|
|
checking remove command (type=u)
|
|
User quota are not enabled on SCRATCH_DEV
|
|
|
|
checking report command (type=u)
|
|
|
|
quota remount
|
|
|
|
checking report command (type=u)
|
|
fsgqa 1024 0 0 00 [--------] 15 0 0 00 [--------]
|
|
|
|
restore quota
|
|
|
|
checking restore command (type=u)
|
|
|
|
checking report command (type=u)
|
|
fsgqa 1024 512 2048 00 [7 days] 15 10 20 00 [7 days]
|
|
|
|
|
|
checking state command (type=u)
|
|
User quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: ON
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [7 days]
|
|
Inodes grace time: [7 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
cleanup files
|
|
----------------------- gquota,sync ---------------------------
|
|
init quota limit and timer, and dump it
|
|
create_files 1024k 15
|
|
quota remount
|
|
|
|
checking quot command (type=g)
|
|
SCRATCH_DEV (SCRATCH_MNT) Group:
|
|
1024 15 fsgqa
|
|
|
|
checking timer command (type=g)
|
|
|
|
checking limit command (type=g, bsoft=512k, bhard=2048k, isoft=10, ihard=20)
|
|
|
|
checking dump command (type=g)
|
|
report options test
|
|
|
|
checking report command (type=g)
|
|
Group quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Group ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-N option
|
|
checking report command (type=g)
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-L -U options
|
|
checking report command (type=g)
|
|
Group quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Group ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
#ID 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-t option
|
|
checking report command (type=g)
|
|
Group quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Group ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-n option
|
|
checking report command (type=g)
|
|
Group quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Group ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
#ID 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-h option
|
|
checking report command (type=g)
|
|
Group quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Group ID Used Soft Hard Warn/Grace Used Soft Hard Warn/Grace
|
|
---------- --------------------------------- ---------------------------------
|
|
fsgqa 1M 512K 2M 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
quot options test
|
|
|
|
checking quot command (type=g)
|
|
SCRATCH_DEV (SCRATCH_MNT) Group:
|
|
1024 15 fsgqa
|
|
-f option
|
|
checking quot command (type=g)
|
|
SCRATCH_DEV (SCRATCH_MNT) Group:
|
|
1024 15 fsgqa
|
|
-n option
|
|
checking quot command (type=g)
|
|
SCRATCH_DEV (SCRATCH_MNT) Group:
|
|
1024 15 #ID
|
|
|
|
checking quota command (type=g)
|
|
Disk quotas for Group fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-f option
|
|
checking quota command (type=g)
|
|
Disk quotas for Group fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-N option
|
|
checking quota command (type=g)
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-n option
|
|
checking quota command (type=g)
|
|
Disk quotas for Group #ID (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-h option
|
|
checking quota command (type=g)
|
|
Disk quotas for Group fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1M 512K 2M 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
disable quota
|
|
|
|
checking disable command (type=g)
|
|
Group quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: OFF
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [3 days]
|
|
Inodes grace time: [3 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
|
|
checking report command (type=g)
|
|
fsgqa 1024 512 2048 00 [--------] 15 10 20 00 [--------]
|
|
|
|
expect a remove error at here
|
|
checking remove command (type=g)
|
|
XFS_QUOTARM: Invalid argument
|
|
|
|
checking enable command (type=g)
|
|
Group quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: ON
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [3 days]
|
|
Inodes grace time: [3 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
|
|
checking report command (type=g)
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
off and remove test
|
|
|
|
checking limit command (type=g, bsoft=100m, bhard=100m, isoft=100, ihard=100)
|
|
|
|
checking quota command (type=g)
|
|
SCRATCH_DEV 1024 102400 102400 00 [--------] 15 100 100 00 [--------] SCRATCH_MNT
|
|
|
|
checking off command (type=g)
|
|
Group quota are not enabled on SCRATCH_DEV
|
|
|
|
checking state command (type=g)
|
|
|
|
checking remove command (type=g)
|
|
Group quota are not enabled on SCRATCH_DEV
|
|
|
|
checking report command (type=g)
|
|
|
|
quota remount
|
|
|
|
checking report command (type=g)
|
|
fsgqa 1024 0 0 00 [--------] 15 0 0 00 [--------]
|
|
|
|
restore quota
|
|
|
|
checking restore command (type=g)
|
|
|
|
checking report command (type=g)
|
|
fsgqa 1024 512 2048 00 [7 days] 15 10 20 00 [7 days]
|
|
|
|
|
|
checking state command (type=g)
|
|
Group quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: ON
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [7 days]
|
|
Inodes grace time: [7 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
cleanup files
|
|
----------------------- pquota,sync ---------------------------
|
|
init quota limit and timer, and dump it
|
|
create_files 1024k 15
|
|
quota remount
|
|
|
|
checking quot command (type=p)
|
|
SCRATCH_DEV (SCRATCH_MNT) Project:
|
|
1024 15 fsgqa
|
|
|
|
checking timer command (type=p)
|
|
|
|
checking limit command (type=p, bsoft=512k, bhard=2048k, isoft=10, ihard=20)
|
|
|
|
checking dump command (type=p)
|
|
report options test
|
|
|
|
checking report command (type=p)
|
|
Project quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Project ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-N option
|
|
checking report command (type=p)
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-L -U options
|
|
checking report command (type=p)
|
|
Project quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Project ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
#ID 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-t option
|
|
checking report command (type=p)
|
|
Project quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Project ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-n option
|
|
checking report command (type=p)
|
|
Project quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Project ID Used Soft Hard Warn/Grace Used Soft Hard Warn/ Grace
|
|
---------- -------------------------------------------------- --------------------------------------------------
|
|
#ID 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
-h option
|
|
checking report command (type=p)
|
|
Project quota on SCRATCH_MNT (SCRATCH_DEV)
|
|
Blocks Inodes
|
|
Project ID Used Soft Hard Warn/Grace Used Soft Hard Warn/Grace
|
|
---------- --------------------------------- ---------------------------------
|
|
fsgqa 1M 512K 2M 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
quot options test
|
|
|
|
checking quot command (type=p)
|
|
SCRATCH_DEV (SCRATCH_MNT) Project:
|
|
1024 15 fsgqa
|
|
-f option
|
|
checking quot command (type=p)
|
|
SCRATCH_DEV (SCRATCH_MNT) Project:
|
|
1024 15 fsgqa
|
|
-n option
|
|
checking quot command (type=p)
|
|
SCRATCH_DEV (SCRATCH_MNT) Project:
|
|
1024 15 #ID
|
|
|
|
checking quota command (type=p)
|
|
Disk quotas for Project fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-f option
|
|
checking quota command (type=p)
|
|
Disk quotas for Project fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-N option
|
|
checking quota command (type=p)
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-n option
|
|
checking quota command (type=p)
|
|
Disk quotas for Project #ID (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1024 512 2048 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
-h option
|
|
checking quota command (type=p)
|
|
Disk quotas for Project fsgqa (ID)
|
|
Filesystem Blocks Quota Limit Warn/Time Files Quota Limit Warn/Time Mounted on
|
|
SCRATCH_DEV 1M 512K 2M 00 [3 days] 15 10 20 00 [3 days] SCRATCH_MNT
|
|
disable quota
|
|
|
|
checking disable command (type=p)
|
|
Project quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: OFF
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [3 days]
|
|
Inodes grace time: [3 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
|
|
checking report command (type=p)
|
|
fsgqa 1024 512 2048 00 [--------] 15 10 20 00 [--------]
|
|
|
|
expect a remove error at here
|
|
checking remove command (type=p)
|
|
XFS_QUOTARM: Invalid argument
|
|
|
|
checking enable command (type=p)
|
|
Project quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: ON
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [3 days]
|
|
Inodes grace time: [3 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
|
|
checking report command (type=p)
|
|
fsgqa 1024 512 2048 00 [3 days] 15 10 20 00 [3 days]
|
|
|
|
off and remove test
|
|
|
|
checking limit command (type=p, bsoft=100m, bhard=100m, isoft=100, ihard=100)
|
|
|
|
checking quota command (type=p)
|
|
SCRATCH_DEV 1024 102400 102400 00 [--------] 15 100 100 00 [--------] SCRATCH_MNT
|
|
|
|
checking off command (type=p)
|
|
Project quota are not enabled on SCRATCH_DEV
|
|
|
|
checking state command (type=p)
|
|
|
|
checking remove command (type=p)
|
|
Project quota are not enabled on SCRATCH_DEV
|
|
|
|
checking report command (type=p)
|
|
|
|
quota remount
|
|
|
|
checking report command (type=p)
|
|
fsgqa 1024 0 0 00 [--------] 15 0 0 00 [--------]
|
|
|
|
restore quota
|
|
|
|
checking restore command (type=p)
|
|
|
|
checking report command (type=p)
|
|
fsgqa 1024 512 2048 00 [7 days] 15 10 20 00 [7 days]
|
|
|
|
|
|
checking state command (type=p)
|
|
Project quota state on SCRATCH_MNT (SCRATCH_DEV)
|
|
Accounting: ON
|
|
Enforcement: ON
|
|
Inode: #[INO] (X blocks, Y extents)
|
|
Blocks grace time: [7 days]
|
|
Inodes grace time: [7 days]
|
|
Realtime Blocks grace time: [7 days]
|
|
cleanup files
|