]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfstests: use command line option for setting extra space
authorDave Chinner <dchinner@redhat.com>
Fri, 15 Mar 2013 11:53:24 +0000 (11:53 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 19 Mar 2013 20:16:13 +0000 (15:16 -0500)
Allow the extra free space to leave in large scratch filesystems to
be specified by a command line option rather than just via an
environment variable.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common

diff --git a/common b/common
index da86cd91e023238f9a1a1b91197a7ef21eb895af..78ac65448bcf3739394a91427ef989be2bc5d1eb 100644 (file)
--- a/common
+++ b/common
@@ -247,6 +247,11 @@ s/ .*//p
            usage
            ;;
 
+       --extra-space=*)
+           export SCRATCH_DEV_EMPTY_SPACE=${r#*=}
+           xpand=false
+           ;;
+
        *)
            start=$r
            end=$r