From: deen Date: Thu, 18 Sep 2008 16:26:35 +0000 (+0000) Subject: Show more info on assertion. X-Git-Tag: GIT_EPOCH_B_RELEASE_1_6_7~2^3~232 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4f239a5db475e3568a2f006b9756ec590aba5eb3;p=fs%2Flustre-release.git Show more info on assertion. b=16206 i=deen i=johann --- diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 47e791f..b5fa0cd 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -814,9 +814,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; } }