]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstest: confirm mkfs.gfs[2] in test 032
authorBarry Naujok <bnaujok@sgi.com>
Thu, 20 Nov 2008 14:23:38 +0000 (14:23 +0000)
committerBarry Naujok <bnaujok@sgi.com>
Thu, 20 Nov 2008 14:23:38 +0000 (14:23 +0000)
mkfs.gfs[2] asks for confirmation before mkfs'ing; without
this test 032 hangs when mkfs.gfs2 is present.

Also, mkfs.gfs needs a few more args to make it go.
Merge of master-melb:xfs-cmds:32510a by kenmcd.

  confirm mkfs.gfs[2] in test 032

032

diff --git a/032 b/032
index 5c23ebf2eb5c60729077de93416a6e41a1829c3d..97dd62239a178eaa34b403919cb8212f9ffe2ee8 100755 (executable)
--- a/032
+++ b/032
@@ -43,6 +43,8 @@ do
        [ $fs = vfat ] && postargs=2000
        # these folks prompt before writing
        [ $fs = jfs ] && preop="echo Y |"
+       [ $fs = gfs ] && preop="echo y |" && preargs="-p lock_nolock -j 1"
+       [ $fs = gfs2 ] && preop="echo y |"
        [ $fs = reiserfs ] && preop="echo y |" && preargs="-f"
        # cramfs mkfs requires a directory argument
        [ $fs = cramfs ] && preargs=/proc/fs/xfs