[PATCH 2/4] xfstests: Add a require_seppquota function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 6076480613e3034eab9758903c093a0b24048658 Mon Sep 17 00:00:00 2001
From: Chandra Seetharaman <sekharan@xxxxxxxxxx>
Date: Wed, 8 Feb 2012 10:04:49 -0600
Subject: [PATCH 2/3] Add a require_seppquota function in preparation for testing
 simultaneous use of pquota and gquota in a filesystem

Signed-off-by: Chandra Seetharaman <sekharan@xxxxxxxxxx>
---
 common.quota |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/common.quota b/common.quota
index 9736306..16344ea 100644
--- a/common.quota
+++ b/common.quota
@@ -87,6 +87,15 @@ _require_nobody()
     [ $? -ne 0 ] && _notrun "group file does not contain nobody/nogroup."
 }
 
+#
+# checks to see if mkfs supports separate pquota
+#
+_require_seppquota()
+{
+    mkfs.xfs -o test 2>&1 | grep seppquota > /dev/null
+    [ $? -ne 0 ] && _notrun "mkfs does not support separate pquota."
+}
+
 # create a file as a specific user (uid)
 # takes filename, id, type (u/g/p), blocksize, blockcount
 #
-- 
1.7.1

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux