Whamcloud - gitweb
don't panic with sparse OST's indexes.
authorshadow <shadow>
Mon, 30 Jun 2008 15:34:14 +0000 (15:34 +0000)
committershadow <shadow>
Mon, 30 Jun 2008 15:34:14 +0000 (15:34 +0000)
Branch b1_8
b=16014
i=tappro
i=deen

lustre/ChangeLog
lustre/lov/lov_obd.c

index f4c25b4..714175f 100644 (file)
@@ -25,6 +25,11 @@ tbd Sun Microsystems, Inc.
          For more information, please refer to bugzilla 13904.
 
 Severity   : normal
+Bugzilla   : 16014
+Description: Kernel panic with find ost index.
+Details    : lov_obd have panic if some OST's have sparse indexes.
+
+Severity   : normal
 Bugzilla   : 14742
 Frequency  : rare
 Description: ASSERTION(CheckWriteback(page,cmd)) failed
index d005bc5..d3d2626 100644 (file)
@@ -2525,7 +2525,7 @@ static int lov_get_info(struct obd_export *exp, __u32 keylen,
 
                 for(i = 0; i < lov->desc.ld_tgt_count; i++) {
                         tgt = lov->lov_tgts[i];
-                        if (obd_uuid_equals(val, &tgt->ltd_uuid))
+                        if (tgt && obd_uuid_equals(val, &tgt->ltd_uuid))
                                 GOTO(out, rc = i);
                 }
         }