[PATCH] xfstests: add another quotaoff testcase to 220

View: New views
2 Messages — Rating Filter:   Alert me  

[PATCH] xfstests: add another quotaoff testcase to 220

by Christoph Hellwig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Add the quotafile space remove regression test from Ryota Yamauchi to
testcase 220.

Signed-off-by: Christoph Hellwig <hch@...>

Index: xfstests-dev/220
===================================================================
--- xfstests-dev.orig/220 2009-10-30 09:16:52.000000000 +0000
+++ xfstests-dev/220 2009-10-30 09:29:19.000000000 +0000
@@ -1,10 +1,10 @@
 #! /bin/sh
 # FS QA Test No. 220
 #
-# Test that turning quotas off on a mounted filesystem doesn't crash
-# the system.
+# Test quota off handling.
 #
-# Based on a bug report from Utako Kusaka <u-kusaka@...>.
+# Based on bug reports from Utako Kusaka <u-kusaka@...> and
+# Ryota Yamauchi <r-yamauchi@...>.
 #
 #-----------------------------------------------------------------------
 # Copyright (c) 2009 Christoph Hellwig.  All Rights Reserved.
@@ -67,5 +67,19 @@ xfs_quota -x -c off $SCRATCH_DEV
 # and unmount (this used to crash)
 umount $SCRATCH_DEV
 
+
+# create scratch filesystem
+_scratch_mkfs_xfs >/dev/null 2>&1
+
+# mount  with quotas enabled
+_scratch_mount -o uquota
+
+# turn off quota and remove space allocated to the quota files
+# (this used to give wrong ENOSYS returns in 2.6.31)
+xfs_quota -x -c off -c remove $SCRATCH_DEV
+
+# and unmount again
+umount $SCRATCH_DEV
+
 status=0
 exit $status

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

RE: [PATCH] xfstests: add another quotaoff testcase to 220

by Alex Elder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Christoph Hellwig wrote:
> Add the quotafile space remove regression test from Ryota Yamauchi to
> testcase 220.

Looks good.  This tests the actual problem reported by Ryota Yamauchi.

> Signed-off-by: Christoph Hellwig <hch@...>

Reviewed-by: Alex Elder <aelder@...>

> Index: xfstests-dev/220
> ===================================================================
> --- xfstests-dev.orig/220 2009-10-30 09:16:52.000000000 +0000
> +++ xfstests-dev/220 2009-10-30 09:29:19.000000000 +0000
> @@ -1,10 +1,10 @@
>  #! /bin/sh
>  # FS QA Test No. 220
>  #
> -# Test that turning quotas off on a mounted filesystem doesn't crash
> -# the system.
> +# Test quota off handling.
>  #
> -# Based on a bug report from Utako Kusaka <u-kusaka@...>.
> +# Based on bug reports from Utako Kusaka <u-kusaka@...> and
> +# Ryota Yamauchi <r-yamauchi@...>.
>  #
>  #-----------------------------------------------------------------------
>  # Copyright (c) 2009 Christoph Hellwig.  All Rights Reserved.
> @@ -67,5 +67,19 @@ xfs_quota -x -c off $SCRATCH_DEV
>  # and unmount (this used to crash)
>  umount $SCRATCH_DEV
>
> +
> +# create scratch filesystem
> +_scratch_mkfs_xfs >/dev/null 2>&1
> +
> +# mount  with quotas enabled
> +_scratch_mount -o uquota
> +
> +# turn off quota and remove space allocated to the quota files
> +# (this used to give wrong ENOSYS returns in 2.6.31)
> +xfs_quota -x -c off -c remove $SCRATCH_DEV
> +
> +# and unmount again
> +umount $SCRATCH_DEV
> +
>  status=0
>  exit $status
>
> _______________________________________________
> xfs mailing list
> xfs@...
> http://oss.sgi.com/mailman/listinfo/xfs

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