From: Dave Chinner Date: Wed, 28 Apr 2010 23:59:24 +0000 (+1000) Subject: xfsqa: more sh to bash conversions X-Git-Tag: v1.1.0~172 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa6a7868cdec070223f56fede4e4c74eeb9177ab;p=xfstests-dev.git xfsqa: more sh to bash conversions A new test is using /bin/sh and failing on debian. Clean it up and all the remaining uses of /bin/sh. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig --- diff --git a/225 b/225 index ab688cd9..b5f53a70 100644 --- a/225 +++ b/225 @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # FS QA Test No. 225 # # Run the fiemap (file extent mapping) tester diff --git a/226 b/226 index 205343ea..e0c66307 100755 --- a/226 +++ b/226 @@ -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 diff --git a/Makepkgs b/Makepkgs index d5583b44..04e029a7 100755 --- a/Makepkgs +++ b/Makepkgs @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # # Make whichever packages have been requested. # Defaults to RPMs. diff --git a/common.repair b/common.repair index c5987827..ba42b8ff 100644 --- a/common.repair +++ b/common.repair @@ -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 diff --git a/install-sh b/install-sh index 4bbc0d3d..9002eb1f 100755 --- a/install-sh +++ b/install-sh @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/make_irix b/make_irix index fc4871c0..d1782785 100755 --- a/make_irix +++ b/make_irix @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2004 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/new b/new index 08fc401e..eb5e0cbb 100755 --- a/new +++ b/new @@ -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 <$id -#! /bin/sh +#! /bin/bash # FS QA Test No. $id # # what am I here for? diff --git a/remake b/remake index 4fd3747b..a95aae79 100755 --- a/remake +++ b/remake @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # # Copyright (c) 2000-2001 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.bonnie_io b/run.bonnie_io index 0d409bb4..e1086506 100755 --- a/run.bonnie_io +++ b/run.bonnie_io @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.bonnie_ops b/run.bonnie_ops index 94c5c54d..609b93ca 100755 --- a/run.bonnie_ops +++ b/run.bonnie_ops @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.dbench b/run.dbench index 4cd02220..8e868071 100755 --- a/run.dbench +++ b/run.dbench @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.dbench10 b/run.dbench10 index 6561354b..e3a08c47 100755 --- a/run.dbench10 +++ b/run.dbench10 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.dbench100 b/run.dbench100 index 6e6c4b78..51708d1c 100755 --- a/run.dbench100 +++ b/run.dbench100 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.dbench2 b/run.dbench2 index 9d6035f2..c56c208b 100755 --- a/run.dbench2 +++ b/run.dbench2 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.dbench20 b/run.dbench20 index aa50bc9e..81f713c0 100755 --- a/run.dbench20 +++ b/run.dbench20 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.dbench50 b/run.dbench50 index 3ae6f4be..4c54e0b8 100755 --- a/run.dbench50 +++ b/run.dbench50 @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2002-2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.dbenchmulti b/run.dbenchmulti index a50f5fd9..317a1004 100755 --- a/run.dbenchmulti +++ b/run.dbenchmulti @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.io b/run.io index c5ed6668..91e3b937 100755 --- a/run.io +++ b/run.io @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.metaperf_10i_1000n b/run.metaperf_10i_1000n index aca004cf..a4206963 100755 --- a/run.metaperf_10i_1000n +++ b/run.metaperf_10i_1000n @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.metaperf_10i_1n b/run.metaperf_10i_1n index 4149fd6b..296fd585 100755 --- a/run.metaperf_10i_1n +++ b/run.metaperf_10i_1n @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.metaperf_1i_1n b/run.metaperf_1i_1n index e714e16b..ef028523 100755 --- a/run.metaperf_1i_1n +++ b/run.metaperf_1i_1n @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2003 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.pio b/run.pio index 28900c63..1b67fbf1 100755 --- a/run.pio +++ b/run.pio @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.rtio b/run.rtio index ed2d74a6..14aded6b 100755 --- a/run.rtio +++ b/run.rtio @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/run.tar b/run.tar index 74c65406..6e8afd33 100755 --- a/run.tar +++ b/run.tar @@ -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. diff --git a/setup b/setup index 0621f5a1..62798cc6 100755 --- a/setup +++ b/setup @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (c) 2003-2004 Silicon Graphics, Inc. All Rights Reserved. # diff --git a/soak b/soak index 5e0d9647..28a2e2e9 100755 --- a/soak +++ b/soak @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash #----------------------------------------------------------------------- # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved. #