From 1b11b008fef7744bd3de87b5227900b5275af995 Mon Sep 17 00:00:00 2001 From: deen Date: Thu, 18 Sep 2008 16:29:04 +0000 Subject: [PATCH] Show more info on assertion. b=16206 i=deen i=johann --- lustre/ost/ost_handler.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/ost/ost_handler.c b/lustre/ost/ost_handler.c index 8a32c09..457110b 100644 --- a/lustre/ost/ost_handler.c +++ b/lustre/ost/ost_handler.c @@ -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; } } -- 1.8.3.1