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