xfstests: rename USE_BIG_LOOPFS to be more generic
[xfstests-dev.git] / 149
diff --git a/149 b/149
index 5ac913c7df534b9bab930b300158626b0d766d08..193e6d7dc9f43fee1ef6ecebbec4beb646526f20 100755 (executable)
--- a/149
+++ b/149
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. 149
 #
 # Exercise xfs_prepair - ensure repeated use doesn't corrupt
@@ -6,6 +6,20 @@
 #
 #-----------------------------------------------------------------------
 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it would be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write the Free Software Foundation,
+# Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+#
 #-----------------------------------------------------------------------
 #
 # creator
@@ -25,7 +39,7 @@ rm -f $seq.full
 . ./common.repair
 . ./common.filter
 
-[ -z $XFS_PARALLEL_REPAIR_PROG ] && _notrun "parallel repair binary xfs_prepair is not installed"
+[ -z "$XFS_PARALLEL_REPAIR_PROG" ] && _notrun "parallel repair binary xfs_prepair is not installed"
 
 # force use of parallel repair
 export XFS_REPAIR_PROG=$XFS_PARALLEL_REPAIR_PROG
@@ -74,7 +88,7 @@ EOF
 
        while [ $count -lt $total ]
        do
-               count=`expr $count + 1`
+               let count=$count+1
                cat >>$tmp.proto <<EOF
 ${count}_of_${total}_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ---755 3 1 /bin/true
 EOF
@@ -86,8 +100,8 @@ EOF
 _supported_fs xfs
 _supported_os IRIX Linux
 
-_require_nobigloopfs
 _require_scratch
+_require_no_large_scratch_dev
 
 # sanity test - default + one root directory entry
 # Note: must do this proto/mkfs now for later inode size calcs