X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fracer%2Fdir_remote.sh;h=1bc9c3adc5132559f7e8165940276bda2accef29;hp=77f9e5805c76ed2ccf0f1c58adcaf0ad6ebd06fb;hb=2f55405983bc78a195c10ce888747df63ee4617b;hpb=d0ba82e44038b2658bbd1a06d52641fda9fc1fe7 diff --git a/lustre/tests/racer/dir_remote.sh b/lustre/tests/racer/dir_remote.sh index 77f9e58..1bc9c3a 100755 --- a/lustre/tests/racer/dir_remote.sh +++ b/lustre/tests/racer/dir_remote.sh @@ -8,8 +8,11 @@ while /bin/true ; do remote_dir=$((RANDOM % MAX)) file=$((RANDOM % MAX)) mdt_idx=$((RANDOM % MDTCOUNT)) + # stripe_count in range [1,MDTCOUNT] + # lfs mkdir treats stripe_count 0 and 1 the same + stripe_count=$(((RANDOM % MDTCOUNT) + 1)) mkdir -p $DIR 2> /dev/null - $LFS mkdir -i$mdt_idx -c$MDTCOUNT $DIR/$remote_dir 2> /dev/null + $LFS mkdir -i$mdt_idx -c$stripe_count $DIR/$remote_dir 2> /dev/null touch $DIR/$remote_dir/$file 2> /dev/null $LFS getdirstripe $DIR/$remote_dir > /dev/null 2>&1 done