Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d94502c117b6d02b38fdbdf877f54b61c5641e4a
[fs/lustre-release.git]
/
lustre
/
tests
/
racer
/
file_create.sh
1
#!/bin/bash
2
3
DIR=$1
4
MAX=$2
5
MAX_MB=256
6
7
create() {
8
SIZE=$(($RANDOM*MAX_MB/32))
9
echo "file_create: SIZE=$SIZE"
10
dd if=/dev/zero of=$DIR/$file bs=1k count=$SIZE
11
}
12
13
while /bin/true ; do
14
file=$(($RANDOM%$MAX))
15
create 2> /dev/null
16
done
17