xfstests: use -F for mkfs.ext4 in btrfs/012
PATCH 1/1 xfstests: use -F for mkfs.ext4 in btrfs/012
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 <[email protected]>
--- tests/btrfs/012 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/btrfs/012 +1 -1
@@ -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
Signature · 1 line
1.8.3.1
Quoted 4 lines · Josef Bacik
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 <[email protected]>
Reviewed-by Eric Sandeen <[email protected]>
Quoted 18 lines
--- tests/btrfs/012 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/btrfs/012 +1
-1@@ -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
This has been committed.
Thanks
--Rich
commit 0c6fb9f3acb4bca2c4abebaf92ed5bb48472cae0
Author: Josef Bacik <[email protected]> Date: Mon Oct 21 16:05:16 2013 +0000
xfstests: use -F for mkfs.ext4 in btrfs/012