]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: use -F when making scratch ext4 fs
authorJosef Bacik <jbacik@fusionio.com>
Fri, 26 Apr 2013 19:16:53 +0000 (19:16 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 3 May 2013 12:43:30 +0000 (07:43 -0500)
mkfs.ext4 will ask you if you are sure if you try to mkfs an entire disk instead
of just a partition, so any xfstest that uses a scratch device and you specify a
full disk will appear to hang because it's waiting for you to say yes.  This
fixes the problem by just forcing it to do its thing.

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
common/rc

index 8e373685b4d0f865c47b0ca7d091245b02ea79d6..846d47daf3dd211fb510b56334f55e0e85c34248 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -478,7 +478,7 @@ _scratch_mkfs_ext4()
 {
        local tmp_dir=/tmp/
 
-       /sbin/mkfs -t $FSTYP -- $MKFS_OPTIONS $* $SCRATCH_DEV \
+       /sbin/mkfs -t $FSTYP -- -F $MKFS_OPTIONS $* $SCRATCH_DEV \
                        2>$tmp_dir.mkfserr 1>$tmp_dir.mkfsstd
        local mkfs_status=$?