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
b=21379 Fix orphans proceeding in osc_create
[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