Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8c19285c63e9abf8dcdaa088ee0aa819e233e7da
[fs/lustre-release.git]
/
lustre
/
tests
/
racer
/
file_truncate.sh
1
#!/bin/bash
2
3
DIR=$1
4
MAX=$2
5
6
TRUNCATE=${TRUNCATE:-$LUSTRE/tests/truncate}
7
8
while true; do
9
file=$DIR/$((RANDOM % MAX))
10
$TRUNCATE $file $RANDOM 2> /dev/null
11
done