Whamcloud - gitweb
Show more info on assertion.
authordeen <deen>
Thu, 18 Sep 2008 16:29:04 +0000 (16:29 +0000)
committerdeen <deen>
Thu, 18 Sep 2008 16:29:04 +0000 (16:29 +0000)
b=16206
i=deen
i=johann

lustre/ost/ost_handler.c

index 8a32c09..457110b 100644 (file)
@@ -835,9 +835,15 @@ static int ost_brw_read(struct ptlrpc_request *req, struct obd_trans_info *oti)
                 }
 
                 if (page_rc != pp_rnb[i].len) { /* short read */
+                        int j = i;
+
                         /* All subsequent pages should be 0 */
                         while(++i < npages)
-                                LASSERT(local_nb[i].rc == 0);
+                                LASSERTF(local_nb[i].rc == 0,
+                                         "page_rc %d, pp_rnb[%u].len=%d, "
+                                         "local_nb[%u/%u].rc=%d\n",
+                                         page_rc, j, pp_rnb[j].len,
+                                         i, npages, local_nb[i].rc);
                         break;
                 }
         }