X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fracer%2Ffile_create.sh;h=f5fd90f2f2d65c071102080d15dd5bb77f9337b8;hp=2dba88a82710bf0e5f59bb4ad3343ed16d42a9be;hb=1cb7bdb883b0b19d944a4bee8403d0b5898a3998;hpb=117c6fb787c8f22c93789e8db670833e737c4d24 diff --git a/lustre/tests/racer/file_create.sh b/lustre/tests/racer/file_create.sh index 2dba88a..f5fd90f 100755 --- a/lustre/tests/racer/file_create.sh +++ b/lustre/tests/racer/file_create.sh @@ -28,12 +28,13 @@ while /bin/true; do [ $stripecount -gt 0 ] && { stripesize=$(((RANDOM % 16 + 1) * 64))K + comp_end=$((${stripesize%K} * (RANDOM % 8 + 1)))K pattern=${layout[$RANDOM % ${#layout[*]}]} case $pattern in dom) opt="setstripe -E $stripesize -L mdt -E eof -c $stripecount -S 1M" ;; - pfl) opt="setstripe -E 1M -S $stripesize -E eof -c $stripecount -S 2M" ;; - flr) opt="mirror create -N2 -E 1M -S $stripesize -E eof -c $stripecount -S 2M" ;; + pfl) opt="setstripe -E $comp_end -S $stripesize -E eof -c $stripecount -S 2M" ;; + flr) opt="mirror create -N2 -E $comp_end -S $stripesize -E eof -c $stripecount -S 2M" ;; raid0) opt="setstripe -S $stripesize -c $stripecount" ;; esac