mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Split out xfs & generic quota existence tests
Make a new test to test for generic quota tools, for generic filesystem testing. Move the existing quota test to a new "xfs" name. Signed-off-by: Eric Sandeen <sandeen@sandeen.net> Reviewed-by: Lachlan McIlroy <lmcilroy@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
+15
-2
@@ -21,14 +21,27 @@
|
||||
#
|
||||
|
||||
#
|
||||
# checks that the XFS quota support in the kernel is enabled
|
||||
# checks that the generic quota support in the kernel is enabled
|
||||
# and that we have valid quota user tools installed.
|
||||
#
|
||||
_require_quota()
|
||||
{
|
||||
[ -x /usr/bin/quota ] || _notrun "Quota user tools not installed"
|
||||
_scratch_mount "-o usrquota,grpquota"
|
||||
ret=$?
|
||||
umount $SCRATCH_MNT
|
||||
[ $ret -ne 0 ] && _notrun "Installed kernel does not support quota"
|
||||
}
|
||||
|
||||
#
|
||||
# checks that the XFS quota support in the kernel is enabled
|
||||
# and that we have valid quota user tools installed.
|
||||
#
|
||||
_require_xfs_quota()
|
||||
{
|
||||
src/feature -q $TEST_DEV
|
||||
[ $? -ne 0 ] && _notrun "Installed kernel does not support XFS quota"
|
||||
[ -x /usr/sbin/xfs_quota ] || _notrun "Quota user tools not installed"
|
||||
[ -x /usr/sbin/xfs_quota ] || _notrun "XFS quota user tools not installed"
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user