Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-4198 clio: turn on lockless for some kind of IO
[fs/lustre-release.git]
/
lustre
/
tests
/
racer
/
file_truncate.sh
diff --git
a/lustre/tests/racer/file_truncate.sh
b/lustre/tests/racer/file_truncate.sh
index
1c85e6f
..
98f201c
100755
(executable)
--- a/
lustre/tests/racer/file_truncate.sh
+++ b/
lustre/tests/racer/file_truncate.sh
@@
-1,8
+1,11
@@
#!/bin/bash
+trap 'kill $(jobs -p)' EXIT
DIR=$1
MAX=$2
+TRUNCATE=${TRUNCATE:-$LUSTRE/tests/truncate}
+
while true; do
file=$DIR/$((RANDOM % MAX))
$TRUNCATE $file $RANDOM 2> /dev/null