Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / tests / racer / file_rename.sh
1 #!/bin/bash
2
3 DIR=$1
4 MAX=$2
5
6 while /bin/true ; do 
7     file=$(($RANDOM%$MAX))
8     new_file=$((($file + 1)%$MAX))
9     mv $DIR/$file $DIR/$new_file 2> /dev/null
10 done