From: Nicolas Williams Date: Fri, 2 Apr 2010 21:59:32 +0000 (-0700) Subject: b22312 Fix off-by-one bug in second loop in test 33c. X-Git-Tag: 1.10.0.40~20 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a052f32756d74b6dae0e60e5f46d04ee5d58a7db b22312 Fix off-by-one bug in second loop in test 33c. i=robert.read@sun.com --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index d2ebdea..2f1f1a9 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1762,7 +1762,7 @@ test_33c() { # Total up write_bytes after writing. We'd better find non-zeros. for ostnum in $(seq $OSTCOUNT); do - ostname=$(printf "lustre-OST%.4d" $ostnum) + ostname=$(printf "lustre-OST%.4d" $((ostnum - 1))) write_bytes=$(do_facet ost$ostnum $LLOBDSTAT $ostname | sed -e 's/^.*, Write: \([0-9][0-9]*\),.*$/\1/' | grep '^[0-9]*$')