From: wangchao Date: Wed, 10 Dec 2003 09:51:51 +0000 (+0000) Subject: b=2237 X-Git-Tag: 1.0.2~77 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=44c72c83153206a265f981ca9ee9d0d581ee2bdb;p=fs%2Flustre-release.git b=2237 a small fix. We should use 0 instead of 1 as the stripe_start patameter, because the first number of OSTs is 0. If we have only one OST, 1 will fail. --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 6216a42..41b20e5 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -697,8 +697,8 @@ test_27e() { if [ ! -d $DIR/d27 ]; then mkdir $DIR/d27 fi - $LSTRIPE $DIR/d27/f12 8192 1 2 || error - $LSTRIPE $DIR/d27/f12 8192 1 2 && error + $LSTRIPE $DIR/d27/f12 8192 0 2 || error + $LSTRIPE $DIR/d27/f12 8192 0 2 && error $CHECKSTAT -t file $DIR/d27/f12 || error } run_test 27e "lstripe existing file (should return error) ======" @@ -707,7 +707,7 @@ test_27f() { if [ ! -d $DIR/d27 ]; then mkdir $DIR/d27 fi - $LSTRIPE $DIR/d27/fbad 100 1 1 && error + $LSTRIPE $DIR/d27/fbad 100 0 1 && error dd if=/dev/zero of=$DIR/d27/f12 bs=4k count=4 || error $LFIND $DIR/d27/fbad || error }