From a052f32756d74b6dae0e60e5f46d04ee5d58a7db Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Fri, 2 Apr 2010 14:59:32 -0700 Subject: [PATCH] b22312 Fix off-by-one bug in second loop in test 33c. i=robert.read@sun.com --- lustre/tests/sanity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]*$') -- 1.8.3.1