From: Patrick Farrell Date: Mon, 11 Dec 2023 15:49:19 +0000 (-0500) Subject: EX-7601 ofd: improve decompress_rnb debug X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=592582fb5716cefb37d1333c518aeeb91e8e57d1;p=fs%2Flustre-release.git EX-7601 ofd: improve decompress_rnb debug Since we're very close on landing the unaligned read patches, this minor debug improvement is being placed later in the series. Test-Parameters: trivial Signed-off-by: Patrick Farrell Change-Id: I36ad243bd1f7025e358f9593f1008f0b851cc1bb Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53411 Reviewed-by: Artem Blagodarenko Reviewed-by: Andreas Dilger Tested-by: jenkins Tested-by: Maloo --- diff --git a/lustre/ofd/ofd_compress.c b/lustre/ofd/ofd_compress.c index 0ead012..c1e019e 100644 --- a/lustre/ofd/ofd_compress.c +++ b/lustre/ofd/ofd_compress.c @@ -145,8 +145,9 @@ int decompress_rnb(const char *obd_name, struct niobuf_local *lnbs, LASSERT(*lnb_start < lnb_npages); CDEBUG(D_SEC, - "rnb_start %llu, rnb_end %llu, lnb_start %d, chunk_size %d\n", - rnb_start, rnb_end, *lnb_start, chunk_size); + "rnb_start %llu, rnb_end %llu, lnb_start %d (at offset %llu), chunk_size %d\n", + rnb_start, rnb_end, *lnb_start, lnbs[*lnb_start].lnb_file_offset, + chunk_size); /* if the start of the read is not chunk aligned, we find the start of * the lnbs for that chunk and decompress it @@ -164,9 +165,9 @@ int decompress_rnb(const char *obd_name, struct niobuf_local *lnbs, } CDEBUG(D_SEC, - "leading chunk lnb %d lnb file offset %llu, chunk start %llu, chunk end %llu\n", - i, lnb ? lnb->lnb_file_offset : 0, chunk_start, - chunk_end); + "leading chunk%s lnb %d lnb file offset %llu, chunk start %llu, chunk end %llu\n", + chunk_found ? "" : "not found", i, + lnb ? lnb->lnb_file_offset : 0, chunk_start, chunk_end); if (!chunk_found) RETURN(-EINVAL); @@ -204,9 +205,9 @@ int decompress_rnb(const char *obd_name, struct niobuf_local *lnbs, } CDEBUG(D_SEC, - "trailing chunk lnb %d lnb file offset %llu, chunk start %llu, chunk end %llu\n", - i, lnb ? lnb->lnb_file_offset : 0, chunk_start, - chunk_end); + "trailing chunk%s lnb %d lnb file offset %llu, chunk start %llu, chunk end %llu\n", + chunk_found ? "" : "not found", i, + lnb ? lnb->lnb_file_offset : 0, chunk_start, chunk_end); if (!chunk_found) RETURN(-EINVAL);