public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic/566: use _require_xfs_quota_foreign to replace the hard -f option
@ 2019-09-10 11:36 Zorro Lang
       [not found] ` <2fc62795-d932-de07-a9ed-695893ead8f8@cn.fujitsu.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Zorro Lang @ 2019-09-10 11:36 UTC (permalink / raw)
  To: fstests

xfstests should decide if xfs_quota need the -f option by
_require_xfs_quota_foreign, not write the -f option after
$XFS_QUOTA_PROG manually. The later way will cause unexpected
error on an old system which xfsprogs doesn't support the -f option.

Signed-off-by: Zorro Lang <zlang@redhat.com>
---
 tests/generic/566 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/generic/566 b/tests/generic/566
index e8491e54..fb239a00 100755
--- a/tests/generic/566
+++ b/tests/generic/566
@@ -34,6 +34,7 @@ _supported_os Linux
 _supported_fs generic
 _require_scratch
 _require_quota
+_require_xfs_quota_foreign
 _require_user
 
 rm -f $seqres.full
@@ -45,7 +46,7 @@ _qmount
 dir="$SCRATCH_MNT/dummy"
 mkdir -p $dir
 chown $qa_user $dir
-$XFS_QUOTA_PROG -x -f -c "limit -g bsoft=100k bhard=100k $qa_user" $SCRATCH_MNT
+$XFS_QUOTA_PROG -x -c "limit -g bsoft=100k bhard=100k $qa_user" $SCRATCH_MNT
 
 $XFS_IO_PROG -f -c 'pwrite -S 0x58 0 1m' $dir/foo >> $seqres.full
 chown $qa_user "${dir}/foo"
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-11  2:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-10 11:36 [PATCH] generic/566: use _require_xfs_quota_foreign to replace the hard -f option Zorro Lang
     [not found] ` <2fc62795-d932-de07-a9ed-695893ead8f8@cn.fujitsu.com>
2019-09-11  2:42   ` Zorro Lang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox