Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
LU-6718 build: force update of lustre-osd-ldiskfs-mount
[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