Whamcloud - gitweb
LU-4198 clio: turn on lockless for some kind of IO
[fs/lustre-release.git] / lustre / tests / racer / file_truncate.sh
index 1c85e6f..98f201c 100755 (executable)
@@ -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