2 trap 'kill $(jobs -p)' EXIT
7 MDTCOUNT=${MDSCOUNT:-$($LFS df $DIR 2> /dev/null | grep -c MDT)}
9 migrate_dir=$((RANDOM % MAX))
10 file=$((RANDOM % MAX))
11 mdt_idx=$((RANDOM % MDTCOUNT))
12 mkdir -p $DIR/$migrate_dir 2> /dev/null
13 $LFS mv -M$mdt_idx $DIR/$migrate_dir 2> /dev/null
14 touch $DIR/$migrate_dir/$file 2> /dev/null
15 $LFS getdirstripe $DIR/$migrate_dir > /dev/null 2>&1