xfstests: use -F for mkfs.ext4 in btrfs/012
authorJosef Bacik <jbacik@fusionio.com>
Mon, 21 Oct 2013 16:05:16 +0000 (16:05 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 22 Oct 2013 21:10:35 +0000 (16:10 -0500)
I noticed this test was hanging because mkfs.ext4 wanted to make sure it was ok
to mkfs an entire device.  We need -F so it doesn't ask this question.  Thanks,

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

index de9014991cc7700baaf6ae8d7dde0d0e216a4b16..f7e5da5c7566b80d39d53c68695359fc7c39a847 100755 (executable)
@@ -65,7 +65,7 @@ _require_command $E2FSCK_PROG e2fsck
 rm -f $seqres.full
 
 # Create & populate an ext4 filesystem
-$MKFS_EXT4_PROG -b 4096 $SCRATCH_DEV > $seqres.full 2>&1 || \
+$MKFS_EXT4_PROG -F -b 4096 $SCRATCH_DEV > $seqres.full 2>&1 || \
        _notrun "Could not create ext4 filesystem"
 # Manual mount so we don't use -t btrfs or selinux context
 mount -t ext4 $SCRATCH_DEV $SCRATCH_MNT