Permalink
Browse files

xfstests: Convert all tests to use /bin/bash

While most tests use /bin/sh, they are dependent on /bin/sh being a
bash shell.  Convert all the tests to execute via /bin/bash as it is
much, much simpler than trying to debug and remove all the bashisms
throughout the test code.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
  • Loading branch information...
1 parent 387165a commit 771e69de67b138654a1f63258cfe4c1bf1c156ee @dchinner dchinner committed Jan 19, 2010
Showing with 245 additions and 245 deletions.
  1. +1 −1 001
  2. +1 −1 002
  3. +1 −1 003
  4. +1 −1 004
  5. +1 −1 005
  6. +1 −1 006
  7. +1 −1 007
  8. +1 −1 008
  9. +1 −1 009
  10. +1 −1 010
  11. +1 −1 011
  12. +1 −1 012
  13. +1 −1 013
  14. +1 −1 014
  15. +1 −1 015
  16. +1 −1 016
  17. +1 −1 017
  18. +1 −1 018
  19. +1 −1 019
  20. +1 −1 020
  21. +1 −1 021
  22. +1 −1 022
  23. +1 −1 023
  24. +1 −1 024
  25. +1 −1 025
  26. +1 −1 026
  27. +1 −1 027
  28. +1 −1 028
  29. +1 −1 029
  30. +1 −1 030
  31. +1 −1 031
  32. +1 −1 032
  33. +1 −1 033
  34. +1 −1 034
  35. +1 −1 035
  36. +1 −1 036
  37. +1 −1 037
  38. +1 −1 038
  39. +1 −1 039
  40. +1 −1 040
  41. +1 −1 041
  42. +1 −1 042
  43. +1 −1 043
  44. +1 −1 044
  45. +1 −1 045
  46. +1 −1 046
  47. +1 −1 047
  48. +1 −1 048
  49. +1 −1 049
  50. +1 −1 050
  51. +2 −2 051
  52. +1 −1 052
  53. +1 −1 053
  54. +1 −1 054
  55. +1 −1 055
  56. +1 −1 056
  57. +1 −1 057
  58. +1 −1 058
  59. +1 −1 059
  60. +1 −1 060
  61. +1 −1 061
  62. +1 −1 062
  63. +1 −1 063
  64. +1 −1 064
  65. +1 −1 065
  66. +1 −1 066
  67. +1 −1 067
  68. +1 −1 068
  69. +1 −1 069
  70. +1 −1 070
  71. +1 −1 071
  72. +1 −1 072
  73. +1 −1 073
  74. +1 −1 074
  75. +1 −1 075
  76. +1 −1 076
  77. +1 −1 077
  78. +1 −1 078
  79. +1 −1 079
  80. +1 −1 080
  81. +1 −1 081
  82. +1 −1 082
  83. +1 −1 083
  84. +1 −1 084
  85. +1 −1 085
  86. +1 −1 086
  87. +1 −1 087
  88. +1 −1 088
  89. +1 −1 089
  90. +1 −1 090
  91. +1 −1 091
  92. +1 −1 092
  93. +2 −2 093
  94. +1 −1 094
  95. +1 −1 095
  96. +1 −1 096
  97. +1 −1 097
  98. +1 −1 098
  99. +2 −2 099
  100. +1 −1 100
  101. +1 −1 101
  102. +1 −1 102
  103. +1 −1 103
  104. +1 −1 104
  105. +1 −1 105
  106. +1 −1 106
  107. +1 −1 107
  108. +1 −1 108
  109. +1 −1 109
  110. +1 −1 110
  111. +1 −1 111
  112. +1 −1 112
  113. +1 −1 113
  114. +1 −1 114
  115. +1 −1 115
  116. +1 −1 116
  117. +1 −1 117
  118. +1 −1 118
  119. +1 −1 119
  120. +1 −1 120
  121. +1 −1 121
  122. +1 −1 122
  123. +2 −2 123
  124. +1 −1 124
  125. +1 −1 125
  126. +1 −1 126
  127. +1 −1 127
  128. +2 −2 128
  129. +1 −1 129
  130. +1 −1 130
  131. +1 −1 131
  132. +1 −1 132
  133. +1 −1 133
  134. +1 −1 134
  135. +1 −1 135
  136. +1 −1 136
  137. +1 −1 137
  138. +1 −1 138
  139. +1 −1 139
  140. +1 −1 140
  141. +1 −1 141
  142. +1 −1 142
  143. +1 −1 143
  144. +1 −1 144
  145. +1 −1 145
  146. +1 −1 146
  147. +1 −1 147
  148. +1 −1 148
  149. +1 −1 149
  150. +1 −1 150
  151. +1 −1 151
  152. +1 −1 152
  153. +1 −1 153
  154. +1 −1 154
  155. +1 −1 155
  156. +1 −1 156
  157. +1 −1 157
  158. +1 −1 158
  159. +1 −1 159
  160. +1 −1 160
  161. +1 −1 161
  162. +1 −1 162
  163. +1 −1 163
  164. +1 −1 164
  165. +1 −1 165
  166. +1 −1 166
  167. +1 −1 167
  168. +1 −1 168
  169. +1 −1 169
  170. +1 −1 170
  171. +1 −1 171
  172. +1 −1 172
  173. +1 −1 173
  174. +1 −1 174
  175. +1 −1 175
  176. +1 −1 176
  177. +1 −1 177
  178. +1 −1 178
  179. +1 −1 179
  180. +1 −1 180
  181. +1 −1 181
  182. +1 −1 182
  183. +1 −1 183
  184. +1 −1 184
  185. +1 −1 185
  186. +1 −1 186
  187. +1 −1 187
  188. +1 −1 188
  189. +1 −1 189
  190. +1 −1 190
  191. +1 −1 191
  192. +1 −1 192
  193. +1 −1 193
  194. +1 −1 194
  195. +1 −1 195
  196. +1 −1 196
  197. +1 −1 197
  198. +1 −1 198
  199. +1 −1 199
  200. +1 −1 200
  201. +1 −1 201
  202. +1 −1 202
  203. +1 −1 203
  204. +1 −1 204
  205. +1 −1 205
  206. +1 −1 206
  207. +1 −1 207
  208. +1 −1 208
  209. +1 −1 209
  210. +1 −1 210
  211. +1 −1 211
  212. +1 −1 212
  213. +1 −1 213
  214. +1 −1 214
  215. +1 −1 215
  216. +1 −1 216
  217. +1 −1 217
  218. +1 −1 218
  219. +1 −1 219
  220. +1 −1 220
  221. +1 −1 221
  222. +1 −1 222
  223. +1 −1 bench
  224. +1 −1 check
  225. +1 −1 common
  226. +1 −1 common.attr
  227. +1 −1 common.bonnie
  228. +1 −1 common.config
  229. +1 −1 common.dbench
  230. +1 −1 common.defrag
  231. +1 −1 common.dmapi
  232. +1 −1 common.dump
  233. +1 −1 common.filestreams
  234. +1 −1 common.filter
  235. +1 −1 common.log
  236. +1 −1 common.metaperf
  237. +1 −1 common.punch
  238. +1 −1 common.quota
  239. +1 −1 common.rc
  240. +1 −1 common.repair
View
2 001
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 001
#
# Random file copier to produce chains of identical files so the head
View
2 002
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 002
#
# simple inode link count test for a regular file
View
2 003
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 003
#
# exercise xfs_db bug #784078
View
2 004
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 004
#
# exercise xfs_db bug #789674 and other freesp functionality
View
2 005
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 005
#
# Test symlinks & ELOOP
View
2 006
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 006
#
# permname
View
2 007
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 007
#
# drive the src/nametest program
View
2 008
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 008
#
# randholes test
View
2 009
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 009
#
# XFS allocator test (preallocation - allocp, resvsp ,etc)
View
2 010
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 010
#
# dbtest
View
2 011
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 011
#
# dirstress
View
2 012
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 012
#
# holes
View
2 013
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 013
#
# fsstress
View
2 014
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 014
#
# truncfile
View
2 015
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 015
#
# check out-of-space behaviour
View
2 016
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 016
#
# test end of log overwrite bug #796141
View
2 017
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 017
#
# test remount ro - pv 795642
View
2 018
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 018
#
# xfs_logprint test - test v2 logs of different LR sizes
View
2 019
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 019
#
# mkfs protofile test
View
2 020
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 020
#
# extended attributes
View
2 021
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 021
#
# xfs_db type attr test (pv 797508 linux-xfs & IRIX)
View
2 022
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 022
#
# Test out a level 0 dump/restore to a tape of a subdir
View
2 023
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 023
#
# To test xfsdump/restore to tape using a directory with
View
2 024
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 024
#
# Test out incremental dumps
View
2 025
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 025
#
# Test dump/restore using -m option (min strategy)
View
2 026
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 026
#
# Test xfsdump/xfsrestore to a dump file (as opposed to a tape)
View
2 027
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 027
#
# Test out "xfsdump | xfsrestore"
View
2 028
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 028
#
# To test out xfsinvutil
View
2 029
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 029
#
# exercise mkfs log (internal/external) zeroing
View
2 030
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 030
#
# exercise xfs_repair repairing broken filesystems
View
2 031
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 031
#
# exercise xfs_repair - ensure repeated use doesn't corrupt
View
2 032
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 032
#
# cross check mkfs detection of foreign filesystems
View
2 033
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 033
#
# exercise xfs_repair repairing broken filesystems (root inodes)
View
2 034
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 034
#
# pv 801241 - check for reference leaks from the *handle xfsctls
View
2 035
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 035
#
# Test doing multiple dumps to tape and restoring the 2nd one
View
2 036
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 036
#
# Test xfsdump/restore minrmt to a remote IRIX tape
View
2 037
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 037
#
# Test xfsdump/restore minrmt to a remote linux tape
View
2 038
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 038
#
# Test xfsdump/restore to a remote linux tape
View
2 039
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 039
#
# Test xfsdump/restore to a remote IRIX tape
View
2 040
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 040
#
# srcdiff test
View
2 041
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 041
#
# growfs QA tests - repeatedly fill/grow the filesystem
View
2 042
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 042
#
# xfs_fsr QA tests
View
2 043
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 043
#
# Test out xfsdump/restore but rmv inventory prior to restore.
View
2 044
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 044
#
# external log uuid/format tests (TODO - version 2 log format)
View
2 045
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 045
#
# test mount of two FSes with identical UUID and mount with unknown option
View
2 046
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 046
#
# check on symlinks permissions
View
2 047
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 047
#
# invutil with interactive responses
View
2 048
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 048
#
# test return codes from xfsctl on bad userspace address
View
2 049
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 049
#
# XFS on loop test
View
2 050
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 050
#
# Exercises basic XFS quota functionality
View
4 051
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 051
#
# Test out ACLs.
@@ -100,7 +100,7 @@ echo "Setup file"
# in order to execute it.
touch file1
cat <<EOF >file1
-#!/bin/sh
+#!/bin/bash
echo "Test was executed"
EOF
chmod u=rwx file1
View
2 052
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 052
#
# Ensure that quota(1) displays blocksizes matching ondisk dquots.
View
2 053
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 053
#
# xfs_repair breaks acls
View
2 054
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 054
#
# Check behavior of chown with both user and group quota enabled,
View
2 055
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 055
#
# Test xfsdump/restore to a remote IRIX tape using RMT user
View
2 056
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 056
#
# Test xfsdump/xfsrestore to a dump file (as opposed to a tape)
View
2 057
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 057
#
# Place holder for test 075. Test out the different acl_get semantics
View
2 058
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 058
#
# Place holder test 068. Test some ACL API functions.
View
2 059
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 059
#
# place holder for IRIX 059 test for xfsdump/xfsrestore multi streams
View
2 060
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 060
#
# place holder for IRIX 060 test for xfsdump/xfsrestore multi streams
View
2 061
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 061
#
# Test restoring a dump created in IRIX/XFS
View
2 062
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 062
#
# Exercises the getfattr/setfattr tools
View
2 063
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 063
#
# xfsdump/xfsrestore with EAs
View
2 064
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 064
#
# test multilevel dump and restores with hardlinks
View
2 065
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 065
#
# Testing incremental dumps and cumulative restores with
View
2 066
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 066
#
# Test dumping of large files
View
2 067
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 067
#
# Test out acl/dacls which fit in shortform in the inode
View
2 068
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 068
#
# Test case to reproduce xfs_freeze hang under filsystem load.
View
2 069
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 069
#
# Test out writes with O_APPEND flag sets.
View
2 070
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 070
#
# fsstress incarnation testing extended attributes writes
View
2 071
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 071
#
# Exercise IO at large file offsets.
View
2 072
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 072
#
# Check some unwritten extent boundary conditions
View
2 073
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 073
#
# Test xfs_copy
View
2 074
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 074
#
# fstest
View
2 075
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 075
#
# fsx (non-AIO variant)
View
2 076
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 076
#
# Test blockdev reads in parallel with filesystem reads/writes
View
2 077
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 077
#
# Check use of ACLs (extended attributes) on a full filesystem
View
2 078
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 078
#
# Check several growfs corner cases
View
2 079
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 079
#
# Run the t_immutable test program for immutable/append-only files.
View
2 080
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 080
#
# rwtest (iogen|doio)
View
2 081
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 081
#
# To test out logprint with quotas
View
2 082
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 082
#
# Test out the v2 stripe logs with logprint
View
2 083
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 083
#
# Exercise filesystem full behaviour - run numerous fsstress
View
2 084
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 084
#
# Exercises unwritten extent reads and writes, looking
View
2 085
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 085
#
# To test log replay by shutdown of file system
View
2 086
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 086
#
# To test log replay with version 2 logs
View
2 087
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 087
#
# * like 086 but want to create more/different kinds of metadata
View
2 088
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 088
#
# test out CAP_DAC_OVERRIDE and CAP_DAC_SEARCH code in
View
2 089
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 089
#
# Emulate the way Linux mount manipulates /etc/mtab to attempt to
View
2 090
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 090
#
# Exercise IO on the realtime device (direct, buffered, mmapd)
View
2 091
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 091
#
# fsx exercising direct IO -- sub-block sizes and concurrent buffered IO
View
2 092
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 092
#
# Make sure that we can mount inode64 filesystems
View
4 093
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 093
#
# Test out for IRIX the removal of file capabilities when
@@ -75,7 +75,7 @@ user=`grep ':all=:all=' /etc/capability | tail -1 | $AWK_PROG -F: '{print $1}'`
uid=`grep $user /etc/passwd | $AWK_PROG -F: '{print $3}'`
cat >$tmp.append <<EOF
-#!/bin/sh
+#!/bin/bash
echo data >>$file
EOF
chmod ugo+x $tmp.append
View
2 094
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 094
#
# Exercising the inheritable realtime inode bit.
View
2 095
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 095
#
# test out xfs_chver on IRIX
View
2 096
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 096
#
# test out mkfs_xfs output on IRIX/Linux and some of its error handling
View
2 097
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 097. Modifed from UDFQA test 033.
#
# simple attr tests for EAs:
View
2 098
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 098. Modified from UDFQA test 035
#
# simple attr tests for EAs:
View
4 099
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 099. Modified from UDFQA test 036.
#
# ACL test
@@ -103,7 +103,7 @@ echo "Setup file"
# in order to execute it.
touch file1
cat <<EOF >file1
-#!/bin/sh
+#!/bin/bash
echo "Test was executed"
EOF
chmod u=rwx file1
View
2 100
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 100. Modified from UDF QA test 030.
#
# Test whether a tarred directory structure can be untarred onto
View
2 101
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 101. Modified from UDFQA test 029.
#
# This tests mkfs_udf with -s [SIZE] option.
View
2 102
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 102
#
# This tests mkfs_udf/mkudffs and the device detection code
View
2 103
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 103
#
# Exercise the XFS nosymlinks inode flag
View
2 104
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 104
#
# XFS online growfs-while-allocating tests (data subvol variant)
View
2 105
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 105
#
# Test fix of bug:
View
2 106
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 106
#
# Exercise basic xfs_quota functionality (user/group/project quota)
View
2 107
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 107
#
# Project quota.
View
2 108
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 108
#
# Simple quota accounting test for direct/buffered/mmap IO.
View
2 109
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 109
#
# ENOSPC deadlock case from Asano Masahiro.
View
2 110
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 110
#
# Incorrect dir2 freetab warning case from Masanori Tsuda.
View
2 111
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 111
#
# Infinite xfs_bulkstat bad-inode loop case from Roger Willcocks.
View
2 112
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 112
#
# fsx (AIO variant, based on 075)
View
2 113
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 113
#
# aio-stress
View
2 114
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 114
#
# Test some parent ptr stuff
View
2 115
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 115
#
# Test out xfs_repair_ipaths
View
2 116
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 116
#
# pv#940491
View
2 117
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 117
#
# Attempt to cause filesystem corruption with serial fsstresses doing
View
2 118
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 118
#
# To test out pv#940675 crash in xfs_trans_brelse + quotas
View
2 119
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 119
#
# Leaking reservation space in the GRH
View
2 120
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# FS QA Test No. 120
#
# Test noatime mount option.
View
2 121
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 121
#
# To test log replay for the unlinked list.
View
2 122
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 122
#
# pv#952498
View
4 123
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 123
#
# Make sure user cannot overwrite, append, delete or move a file created by
@@ -60,7 +60,7 @@ _user_do()
{
if [ "$HOSTOS" == "IRIX" ]
then
- echo $1 | /bin/sh "su $qa_user 2>&1" | _filter_user_do
+ echo $1 | /bin/bash "su $qa_user 2>&1" | _filter_user_do
else
echo $1 | su $qa_user 2>&1 | _filter_user_do
fi
View
2 124
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 124
#
# Test preallocated_rw_pattern_test modified from CXFSQA test preallocated_rw_pattern_test
View
2 125
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 125
#
# ftruncate test, modified from CXFSQA tests cxfs_ftrunc and cxfs_trunc
View
2 126
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 126
#
# tests various file permission options modified from CXFSQA test fs_perms
View
2 127
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 127
#
# fsx tests modified from CXFSQA tests
View
4 128
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 128
#
# Test nosuid mount option modified from CXFSQA test mount_option_nosuid
@@ -58,7 +58,7 @@ cp `which ls` $SCRATCH_MNT
chmod 700 $SCRATCH_MNT/nosuid
chmod 4755 $SCRATCH_MNT/ls
-su -s/bin/sh - $qa_user -c "$SCRATCH_MNT/ls $SCRATCH_MNT/nosuid >/dev/null 2>&1"
+su -s/bin/bash - $qa_user -c "$SCRATCH_MNT/ls $SCRATCH_MNT/nosuid >/dev/null 2>&1"
if [ $? -eq 0 ] ; then
echo "Error: we shouldn't be able to ls the directory"
fi
View
2 129
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 129
#
# looptests created from CXFSQA test looptest
View
2 130
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 130
#
# xfs_io vector read/write and trunc tests. modified from cxfsqa tests
View
2 131
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 131
#
# lock test created from CXFSQA test lockfile_simple
View
2 132
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 132
#
# xfs_io aligned vector rw created from CXFSQA test
View
2 133
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 133
#
# Concurrent I/O to same file to ensure no deadlocks
View
2 134
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 134
#
# test to reproduce PV951636:
View
2 135
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 135
#
# Concurrent I/O to same file to ensure no deadlocks
View
2 136
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 136
#
# Test the attr2 code
View
2 137
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 137
#
# Test for NULL files problem
View
2 138
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 138
#
# Test for NULL files problem
View
2 139
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 139
#
# Test for NULL files problem
View
2 140
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 140
#
# Test for NULL files problem
View
2 141
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 141
#
# Test for xfs_io mmap read problem
View
2 142
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 142
#
# Dmapi get/set_dmattr
View
2 143
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 143
#
# Dmapi get/set_eventlist
View
2 144
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 144
#
# Dmapi get/set_fileattr, get_bulkattr, get_dirattrs
View
2 145
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 145
#
# Dmapi probe/punch_hole
View
2 146
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 146
#
# Dmapi read/write_invis
View
2 147
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 147
#
# Dmapi get/set_region
View
2 148
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 148
#
# Exercise xfs parallel repair on broken filesystems
View
2 149
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 149
#
# Exercise xfs_prepair - ensure repeated use doesn't corrupt
View
2 150
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 150
#
# Set DM_EVENT_RENAME event on a DMAPI filesystem and verify it is set.
View
2 151
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 151
#
# Create three DMAPI sessions,
View
2 152
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 152
#
# Verify DMAPI functions
View
2 153
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 153
#
# Associate filesystem with a session by setting DMAPI DM_EVENT_RENAME
View
2 154
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 154
#
# Get DMAPI filesystem handle
View
2 155
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 155
#
# DMAPI event DM_EVENT_RENAME generation
View
2 156
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 156
#
# DMAPI get directory attributes (simple check
View
2 157
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 157
#
# get/set DMAPI attributes
View
2 158
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 158
#
# get/set file attributes
View
2 159
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 159
#
# Create DMAPI event and respond to it.
View
2 160
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 160
#
# Change and view DMAPI access rights.
View
2 161
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 161
#
# DMAPI function punch hole. Create 3Mb file and punch a hole from
View
2 162
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 162
#
# Placing holds on objects
View
2 163
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 163
#
# File descriptor to handle conversion
View
2 164
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 164
#
# To test for short dio reads on IRIX and Linux - pv#962005/962547
View
2 165
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FS QA Test No. 165
#
# Test out prealloc, direct writes and buffered read
View
2 166
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
# FSQA Test No. 166
#