- # 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$stripe_count $DIR/$remote_dir 2> /dev/null
+
+ if $RACER_ENABLE_STRIPED_DIRS; then
+ # stripe_count in range [1,MDTCOUNT]
+ # $LFS mkdir treats stripe_count 0 and 1 the same
+ stripe_count_opt="-c$((RANDOM % MDTCOUNT + 1))"
+ else
+ stripe_count_opt=""
+ fi
+
+ $LFS mkdir -i$mdt_idx $stripe_count_opt $DIR/$remote_dir 2> /dev/null