Whamcloud - gitweb
to handle stripecount == -1 correctly
authorhuanghua <huanghua>
Tue, 10 Oct 2006 07:48:11 +0000 (07:48 +0000)
committerhuanghua <huanghua>
Tue, 10 Oct 2006 07:48:11 +0000 (07:48 +0000)
lustre/tests/sanity.sh

index 631be2a..0629ec7 100644 (file)
@@ -1850,10 +1850,9 @@ test_44a() {
                          awk '{print $2}'`
     local stride=`$LCTL lov_getconfig $DIR | grep default_stripe_size: | \
                       awk '{print $2}'`
-    if [ $nstripe -eq 0 ] ; then
+    if [ $nstripe -eq 0 -o $nstripe -gt 1024 ] ; then
         nstripe=`$LCTL lov_getconfig $DIR | grep obd_count: | awk '{print $2}'`
     fi
-
     OFFSETS="0 $((stride/2)) $((stride-1))"
     for offset in $OFFSETS ; do
       for i in `seq 0 $((nstripe-1))`; do