xfs: test xfs_quota "state" command

This exercises the xfs_quota "state" command for every
combination of user, group, and project quota enablement
on both crc (with project quota inode on disk) and non-crc
(where project quota overlaps group quota on disk) filesystems.

It currently requires patches to the upstream kernel
("quota: fill in Q_XGETQSTAT inode information for inactive quotas")
and to xfsprogs ("xfs_quota: wire up XFS_GETQSTATV") to pass.

Rather than trying to make it run on older kernels without
crc capability, I restrict the test to crc-capable environments,
but test with and without crcs enabled (and hence with and without
project quota inode on disk).

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Eric Sandeen
2016-08-15 22:23:11 -05:00
committed by Eryu Guan
parent 478b9693c9
commit 397c6eb2b6
3 changed files with 297 additions and 0 deletions
+1
View File
@@ -260,6 +260,7 @@
260 auto quick quota
261 auto quick quota
262 auto quick quota
263 auto quick quota
265 auto clone
266 dump ioctl auto quick
267 dump ioctl tape