Whamcloud - gitweb
LU-17705 ptlrpc: replace synchronize_rcu() with rcu_barrier()
[fs/lustre-release.git] / lustre / tests / racer / file_truncate.sh
1 #!/bin/bash
2 trap 'kill $(jobs -p)' EXIT
3
4 DIR=$1
5 MAX=$2
6
7 TRUNCATE=${TRUNCATE:-$LUSTRE/tests/truncate}
8
9 while true; do
10         file=$DIR/$((RANDOM % MAX))
11         $TRUNCATE $file $RANDOM 2> /dev/null
12 done