Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / tests / racer / file_concat.sh
diff --git a/lustre/tests/racer/file_concat.sh b/lustre/tests/racer/file_concat.sh
new file mode 100755 (executable)
index 0000000..38181ad
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+DIR=$1
+MAX=$2
+
+concat(){
+    cat $DIR/$file >> $DIR/$new_file
+    cat $DIR/$file/$file/$file >> $DIR/$new_file
+
+}
+
+while /bin/true ; do 
+    file=$(($RANDOM%$MAX))
+    new_file=$(($RANDOM%$MAX))
+    concat 2> /dev/null
+done