]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
mkfe2fs unfortunately hasn't heard about real enterprise setups using
authorBarry Naujok <bnaujok@sgi.com>
Wed, 26 Nov 2008 02:43:44 +0000 (02:43 +0000)
committerBarry Naujok <bnaujok@sgi.com>
Wed, 26 Nov 2008 02:43:44 +0000 (02:43 +0000)
whole disks and needs the -F option to create a filesystem on those
without asking stupid questions that make the testcases block forever.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:32546a by kenmcd.

  fix xfsqa on whole disks

032
049

diff --git a/032 b/032
index 97dd62239a178eaa34b403919cb8212f9ffe2ee8..840b32d45657d4c6ee482d26f07eb612a9576c2d 100755 (executable)
--- a/032
+++ b/032
@@ -48,6 +48,10 @@ do
        [ $fs = reiserfs ] && preop="echo y |" && preargs="-f"
        # cramfs mkfs requires a directory argument
        [ $fs = cramfs ] && preargs=/proc/fs/xfs
+       [ $fs = ext2 ] && preargs="-F"
+       [ $fs = ext3 ] && preargs="-F"
+       [ $fs = ext4 ] && preargs="-F"
+       [ $fs = ext4dev ] && preargs="-F"
 
        # overwite the first few Kb - should blow away superblocks
        src/devzero -n 20 $SCRATCH_DEV >/dev/null
diff --git a/049 b/049
index 6f1545fdad7709bad3f7c64a0ec5be51aa770ea8..5bf430bfe6a29a887c697e58b7962ce96be5fe1e 100755 (executable)
--- a/049
+++ b/049
@@ -60,7 +60,7 @@ echo "--- mounts" >> $seq.full
 mount >> $seq.full
 
 _log "Create ext2 fs on scratch"
-mkfs -t ext2 $SCRATCH_DEV >> $seq.full 2>&1 \
+mkfs -t ext2 -F $SCRATCH_DEV >> $seq.full 2>&1 \
     || _fail "!!! failed to mkfs ext2"
 
 _log "Mount ext2 fs on scratch"