]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
test quota log replay in 087
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Jan 2010 21:45:26 +0000 (22:45 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Jan 2010 21:45:26 +0000 (22:45 +0100)
By mounting the filesystem with quotas enabled in 087 we exercise the
replay of the quota log items in this tests, which we otherwise don't
test in xfstests.  OSS bugzilla #855 is an example of something caught
by this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <david@fromorbit.com>
087
group

diff --git a/087 b/087
index 0146d68297eb9db50429dd41a89823dcb9b86977..14a9d4e16a89100c4926be70eaf7c624e87874e2 100755 (executable)
--- a/087
+++ b/087
@@ -38,6 +38,7 @@ trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
 . ./common.rc
 . ./common.filter
 . ./common.log
+. ./common.quota
 
 _do_meta()
 {
@@ -59,6 +60,7 @@ _supported_os IRIX Linux
 rm -f $seq.full $tmp.*
 _require_scratch
 _require_v2log 
+_require_xfs_quota
 
 echo "*** init FS"
 umount $SCRATCH_DEV >/dev/null 2>&1
@@ -98,7 +100,7 @@ do
 
     # mount the FS
     _echofull "mount"
-    if ! _scratch_mount >>$seq.full 2>&1; then
+    if ! _scratch_mount -o uquota >>$seq.full 2>&1; then
        _echofull "mount failed: $MOUNT_OPTIONS"
        continue
     fi
@@ -124,7 +126,7 @@ do
     _scratch_xfs_logprint -n >>$seq.full 2>&1
 
     _echofull "mount with replay"
-    _scratch_mount >>$seq.full 2>&1 \
+    _scratch_mount -o uquota >>$seq.full 2>&1 \
        || _fail "mount failed: $MOUNT_OPTIONS"
 
     # check on what FS looks like after log recovery
diff --git a/group b/group
index 8d055a2132bc51db988df4ba17fb603e2179e138..ecf15c6b2049473ebfa54f8a86d37ebab147087b 100644 (file)
--- a/group
+++ b/group
@@ -193,7 +193,7 @@ prealloc
 084 ioctl rw auto
 085 log auto quick
 086 log v2log auto
-087 log v2log auto
+087 log v2log auto quota
 088 perms auto quick
 089 metadata auto
 090 rw auto