Whamcloud - gitweb
b=2237
authorwangchao <wangchao>
Wed, 10 Dec 2003 09:51:51 +0000 (09:51 +0000)
committerwangchao <wangchao>
Wed, 10 Dec 2003 09:51:51 +0000 (09:51 +0000)
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.

lustre/tests/sanity.sh

index 6216a42..41b20e5 100644 (file)
@@ -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
 }