Skip to contentSkip to conversation

xfsqa: more sh to bash conversions

PATCH In review Dave Chinner 2 participants 2 messages Apr 28, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfsqa: more sh to bash conversions

From: Dave Chinner <[email protected]>

A new test is using /bin/sh and failing on debiaṅ. Clean it up and all the remaining uses of /bin/sh.

---
 225                    |    2 +-
 226                    |    2 +-
 Makepkgs               |    2 +-
 common.repair          |    4 ++--
 install-sh             |    2 +-
 make_irix              |    2 +-
 new                    |    4 ++--
 remake                 |    2 +-
 run.bonnie_io          |    2 +-
 run.bonnie_ops         |    2 +-
 run.dbench             |    2 +-
 run.dbench10           |    2 +-
 run.dbench100          |    2 +-
 run.dbench2            |    2 +-
 run.dbench20           |    2 +-
 run.dbench50           |    2 +-
 run.dbenchmulti        |    2 +-
 run.io                 |    2 +-
 run.metaperf_10i_1000n |    2 +-
 run.metaperf_10i_1n    |    2 +-
 run.metaperf_1i_1n     |    2 +-
 run.pio                |    2 +-
 run.rtio               |    2 +-
 run.tar                |    2 +-
 setup                  |    2 +-
 soak                   |    2 +-
 26 files changed, 28 insertions(+), 28 deletions(-)
225 +1 -1
index ab688cd..b5f53a7 100644
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. 225
 #
 # Run the fiemap (file extent mapping) tester
226 +1 -1
index 205343e..e0c6630 100755
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. 226
 #
 # Test for prealloc space leaks by rewriting the same file in a loop
Makepkgs +1 -1
index d5583b4..04e029a 100755
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 #	Make whichever packages have been requested.
 #	Defaults to RPMs.
common.repair +2 -2
index c598782..ba42b8f 100644
@@ -90,7 +90,7 @@ _check_repair()
 	#ensure the filesystem has been dirtied since last repair
 	_scratch_mount
 	POSIXLY_CORRECT=yes \
-	dd if=/bin/sh of=$SCRATCH_MNT/sh 2>&1 |_filter_dd
+	dd if=/bin/bash of=$SCRATCH_MNT/sh 2>&1 |_filter_dd
 	sync
 	rm -f $SCRATCH_MNT/sh
 	umount $SCRATCH_MNT
@@ -102,7 +102,7 @@ _check_repair()
 	_check_scratch_fs
 	_scratch_mount                                      #mount
 	POSIXLY_CORRECT=yes \
-	dd if=/bin/sh of=$SCRATCH_MNT/sh 2>&1 |_filter_dd   #open,write
+	dd if=/bin/bash of=$SCRATCH_MNT/sh 2>&1 |_filter_dd   #open,write
 	POSIXLY_CORRECT=yes \
 	dd if=$SCRATCH_MNT/sh of=/dev/null 2>&1 |_filter_dd #read
 	rm -f $SCRATCH_MNT/sh                               #unlink
install-sh +1 -1
index 4bbc0d3..9002eb1 100755
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
 #
make_irix +1 -1
index fc4871c..d178278 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2004 Silicon Graphics, Inc.  All Rights Reserved.
 #
new +2 -2
index 08fc401..eb5e0cb 100755
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 #-----------------------------------------------------------------------
 #  Copyright (c) 2000-2005 Silicon Graphics, Inc.  All Rights Reserved.
@@ -93,7 +93,7 @@ echo -n "Creating skeletal script for you to edit ..."
 year=`date +%Y`
 
 cat <<End-of-File >$id
-#! /bin/sh
+#! /bin/bash
 # FS QA Test No. $id
 #
 # what am I here for?
remake +1 -1
index 4fd3747..a95aae7 100755
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 # Copyright (c) 2000-2001 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.bonnie_io +1 -1
index 0d409bb..e108650 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.bonnie_ops +1 -1
index 94c5c54..609b93c 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.dbench +1 -1
index 4cd0222..8e86807 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.dbench10 +1 -1
index 6561354..e3a08c4 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.dbench100 +1 -1
index 6e6c4b7..51708d1 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.dbench2 +1 -1
index 9d6035f..c56c208 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.dbench20 +1 -1
index aa50bc9..81f713c 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.dbench50 +1 -1
index 3ae6f4b..4c54e0b 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2002-2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.dbenchmulti +1 -1
index a50f5fd..317a100 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.io +1 -1
index c5ed666..91e3b93 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.metaperf_10i_1000n +1 -1
index aca004c..a420696 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.metaperf_10i_1n +1 -1
index 4149fd6..296fd58 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.metaperf_1i_1n +1 -1
index e714e16..ef02852 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.pio +1 -1
index 28900c6..1b67fbf 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.rtio +1 -1
index ed2d74a..14aded6 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2005 Silicon Graphics, Inc.  All Rights Reserved.
 #
run.tar +1 -1
index 74c6540..6e8afd3 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 # 
 # Produces a .tar file (if one doesn't exist as $TARFILE), then
 # times how long it takes to untar it onto the current directory.
setup +1 -1
index 0621f5a..62798cc 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (c) 2003-2004 Silicon Graphics, Inc.  All Rights Reserved.
 #
soak +1 -1
index 5e0d964..28a2e2e 100755
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #-----------------------------------------------------------------------
 # Copyright (c) 2000-2002 Silicon Graphics, Inc.  All Rights Reserved.
 #
Signature · 6 lines
1.5.6.5

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs