Skip to contentSkip to conversation

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

PATCH In review Josef Bacik 3 participants 3 messages Oct 21, 2013 – Oct 22, 2013 Btrfs file system

lore
Share & tools
lore
#0 lore raw

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,

---
 tests/btrfs/012 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/btrfs/012 +1 -1
index de90149..f7e5da5 100755
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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,

Quoted 18 lines
---
 tests/btrfs/012 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/btrfs/012 +1 -1
index de90149..f7e5da5 100755
@@ -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