Whamcloud - gitweb
LU-7323 test: Unknown symbol mb_cache_create (err 0)" on RHEL7
[fs/lustre-release.git] / lustre / tests / racer / file_mknod.sh
1 #!/bin/bash
2 trap 'kill $(jobs -p)' EXIT
3
4 DIR=$1
5 MAX=$2
6
7 MCREATE=${MCREATE:-$LUSTRE/tests/mcreate}
8
9 while true; do
10         file=$DIR/$((RANDOM % MAX))
11         $MCREATE $file 2> /dev/null
12 done