| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 2/4] xfstests: Add a require_seppquota function |
| From: | Chandra Seetharaman <sekharan@xxxxxxxxxx> |
| Date: | Tue, 21 Feb 2012 10:58:45 -0600 |
| Cc: | Chandra Seetharaman <sekharan@xxxxxxxxxx> |
| In-reply-to: | <20120221165833.23253.38042.sendpatchset@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20120221165833.23253.38042.sendpatchset@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
>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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/4] xfstests: Fix a problem where using bsize was not working as expected, Chandra Seetharaman |
|---|---|
| Next by Date: | [PATCH 3/4] xfstests: Add a simple test to check separate pquota/gquota, Chandra Seetharaman |
| Previous by Thread: | [PATCH 1/4] xfstests: Fix a problem where using bsize was not working as expected, Chandra Seetharaman |
| Next by Thread: | [PATCH 3/4] xfstests: Add a simple test to check separate pquota/gquota, Chandra Seetharaman |
| Indexes: | [Date] [Thread] [Top] [All Lists] |