2 trap 'kill $(jobs -p)' EXIT
7 MDTCOUNT=${MDSCOUNT:-$($LFS df $DIR 2> /dev/null | grep -c MDT)}
9 remote_dir=$((RANDOM % MAX))
10 file=$((RANDOM % MAX))
11 mdt_idx=$((RANDOM % MDTCOUNT))
13 if $RACER_ENABLE_STRIPED_DIRS; then
14 # stripe_count in range [1,MDTCOUNT]
15 # $LFS mkdir treats stripe_count 0 and 1 the same
16 stripe_count_opt="-c$((RANDOM % MDTCOUNT + 1))"
21 $LFS mkdir -i$mdt_idx $stripe_count_opt $DIR/$remote_dir 2> /dev/null
22 touch $DIR/$remote_dir/$file 2> /dev/null
23 $LFS getdirstripe $DIR/$remote_dir > /dev/null 2>&1