From 0145d1c7e4f147ed25750895e126853acc1b0d95 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Wed, 10 Nov 2004 13:49:16 +0000 Subject: [PATCH] Fix quota tests correctly to run on SuSE. Merge of xfs-cmds-melb:slinx:20073a by kenmcd. --- common.quota | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/common.quota b/common.quota index ca6daefa..7f9a2a2b 100644 --- a/common.quota +++ b/common.quota @@ -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) -- 2.39.5