From: James Simmons Date: Thu, 29 Dec 2011 16:08:51 +0000 (-0500) Subject: LU-625 test: sanityn.sh test file size should be dynamic X-Git-Tag: 2.1.54~40 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=46926d1caf504eba712ac9fcf22b439b91bf08cc LU-625 test: sanityn.sh test file size should be dynamic For large OSTCOUNT, a small write can't take extent locks on all OSTs. Signed-off-by: James Simmons Change-Id: Ic3fb8e88444767db70545292c4b81b9fe9f1f813 Reviewed-on: http://review.whamcloud.com/1901 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 1978beb..ebc82a1 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -630,7 +630,8 @@ test_32a() { # bug 11270 enable_lockless_truncate 1 rm -f $DIR1/$tfile lfs setstripe -c -1 $DIR1/$tfile - dd if=/dev/zero of=$DIR1/$tfile count=10 bs=1M > /dev/null 2>&1 + dd if=/dev/zero of=$DIR1/$tfile count=$OSTCOUNT bs=$STRIPE_BYTES > \ + /dev/null 2>&1 clear_osc_stats log "checking cached lockless truncate"