[Top] [All Lists]

[PATCH] xfstests: use -F for mkfs.ext4 in btrfs/012

To: <linux-btrfs@xxxxxxxxxxxxxxx>, <xfs@xxxxxxxxxxx>
Subject: [PATCH] xfstests: use -F for mkfs.ext4 in btrfs/012
From: Josef Bacik <jbacik@xxxxxxxxxxxx>
Date: Mon, 21 Oct 2013 12:05:16 -0400
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fusionio.com; s=default; t=1382371518; bh=rqV1Pvy+wUGAMoA0n7L4S8tsg6zm0EaYwFLFnJEV7YI=; h=From:To:Subject:Date; b=HOIp+mi2NK6htFTZtJiAU++qx7B++IRVowGSCGUXqjaCDYxm7vWVoimytVuI1vPWK /P38qVhkf6moc2NJTvU6p81STJCslmPbdfrccd8jcC2/kjB1hJYrvsWwd+nGkjpvy/ gpTK4r8H8uCkHNQqqH1kGgr1XaqbWkNErieE1qP8=
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@xxxxxxxxxxxx>
 tests/btrfs/012 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/btrfs/012 b/tests/btrfs/012
index de90149..f7e5da5 100755
--- a/tests/btrfs/012
+++ b/tests/btrfs/012
@@ -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

<Prev in Thread] Current Thread [Next in Thread>