mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix quota tests correctly to run on SuSE.
Merge of xfs-cmds-melb:slinx:20073a by kenmcd.
This commit is contained in:
+2
-9
@@ -41,15 +41,8 @@ _require_quota()
|
||||
{
|
||||
src/feature -q $TEST_DEV
|
||||
[ $? -ne 0 ] && _notrun "Installed kernel does not support XFS quota"
|
||||
|
||||
if [ "$HOSTOS" = "IRIX" ]; then
|
||||
[ ! -x /usr/etc/quotaon ] && _notrun "Quota user tools not installed"
|
||||
else
|
||||
[ ! -x /sbin/quotaon ] && _notrun "Quota user tools not installed"
|
||||
|
||||
/sbin/quotaon -x 2>&1 | grep "option requires an argument -- x" >/dev/null
|
||||
[ $? -ne 0 ] && _notrun "Installed quota tools do not support XFS"
|
||||
fi
|
||||
[ -x /usr/etc/quotaon -o -x /sbin/quotaon -o -x /usr/sbin/quotaon ] || \
|
||||
_notrun "Quota user tools not installed"
|
||||
}
|
||||
|
||||
# create a file as a specific user (uid)
|
||||
|
||||
Reference in New Issue
Block a user