diff mbox

[5/8] xfstests: use command line option for setting extra space

Message ID 1321875088-30801-6-git-send-email-david@fromorbit.com
State Not Applicable, archived
Headers show

Commit Message

Dave Chinner Nov. 21, 2011, 11:31 a.m. UTC
From: Dave Chinner <dchinner@redhat.com>

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>
---
 common |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Christoph Hellwig Dec. 4, 2011, 9:16 p.m. UTC | #1
On Mon, Nov 21, 2011 at 10:31:25PM +1100, Dave Chinner wrote:
> From: Dave Chinner <dchinner@redhat.com>
> 
> 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>

This probably should be documented in the help text.

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/common b/common
index da86cd9..78ac654 100644
--- 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