[PATCH 2/3] Add a require_seppquota function in preparation for testing simultaneous use of pquota and gquota in a filesystem
Chandra Seetharaman
sekharan at us.ibm.com
Wed Feb 8 10:04:49 CST 2012
Signed-off-by: Chandra Seetharaman <sekharan at us.ibm.com>
---
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
More information about the xfs
mailing list