Whamcloud - gitweb
LU-7786 tests: improve racer cleanup
[fs/lustre-release.git] / lustre / tests / racer / file_concat.sh
1 #!/bin/bash
2 trap 'kill $(jobs -p)' EXIT
3
4 DIR=$1
5 MAX=$2
6
7 concat(){
8     cat $DIR/$file >> $DIR/$new_file
9     cat $DIR/$file/$file/$file >> $DIR/$new_file
10
11 }
12
13 while /bin/true ; do
14     file=$((RANDOM % MAX))
15     new_file=$((RANDOM % MAX))
16     concat 2> /dev/null
17 done