In racer's file_link.sh the old path was not prefixed by the directory
used by racer. Since file_link.sh does not run out of this directory
no links were created. Fix this in by supplying the correct old path.
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ifcbcc3d50c70faed7a99fa95217b08c8efe35791
Reviewed-on: http://review.whamcloud.com/6351
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
DIR=$1
MAX=$2
-while /bin/true ; do
- file=$((RANDOM % $MAX))
- new_file=$((RANDOM % MAX))
- ln $file $DIR/$new_file 2> /dev/null
+while true; do
+ old_path=$DIR/$((RANDOM % MAX))
+ new_path=$DIR/$((RANDOM % MAX))
+ ln $old_path $new_path 2> /dev/null
done