X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanityn.sh;fp=lustre%2Ftests%2Fsanityn.sh;h=b2f41a7822c7522dffe7f3ecb3e257cb83361634;hp=38b884a15c76274dbed61dc72008d810d9a3239a;hb=ef708dee307230c2c1fbd4872d625c09e838338b;hpb=439520f762b093edba9af2f4ab63011eafab28d5 diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 38b884a1..b2f41a7 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -417,18 +417,21 @@ run_test 16a "$FSXNUM iterations of dual-mount fsx" test_16b() { local file1=$DIR1/$tfile local file2=$DIR2/$tfile + local stripe_size=($($LFS getstripe -S $DIR)) # to allocate grant because it may run out due to test_15. lfs setstripe -c -1 $file1 - dd if=/dev/zero of=$file1 bs=$STRIPE_BYTES count=$OSTCOUNT oflag=sync - dd if=/dev/zero of=$file2 bs=$STRIPE_BYTES count=$OSTCOUNT oflag=sync + dd if=/dev/zero of=$file1 bs=$stripe_size count=$OSTCOUNT oflag=sync || + error "dd failed writing to file=$file1" + dd if=/dev/zero of=$file2 bs=$stripe_size count=$OSTCOUNT oflag=sync || + error "dd failed writing to file=$file2" rm -f $file1 lfs setstripe -c -1 $file1 # b=10919 # -o is set to 8192 because writes < 1 page and between 1 and 2 pages # create a mix of tiny writes & normal writes fsx -c 50 -p $FSXP -N $FSXNUM -l $((SIZE * 256)) -o 8192 -S 0 $file1 \ - $file2 + $file2 || error "fsx with tiny write failed." } run_test 16b "$FSXNUM iterations of dual-mount fsx at small size"