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
}
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);
}
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);