blob: print LBA when dumping a metadata page
When printing metadata pages, blobcli could print the start LBA to aid someone that needs to debug with dd and od. Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: I380bd923dfcd1149e3f705dd0ec0ab46b1000019 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11260 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
5c29449f4e
commit
8ddb1790c9
@ -4747,6 +4747,7 @@ bs_dump_print_md_page(struct spdk_bs_load_ctx *ctx)
|
||||
|
||||
fprintf(ctx->fp, "=========\n");
|
||||
fprintf(ctx->fp, "Metadata Page Index: %" PRIu32 " (0x%" PRIx32 ")\n", page_idx, page_idx);
|
||||
fprintf(ctx->fp, "Start LBA: %" PRIu64 "\n", bs_md_page_to_lba(ctx->bs, page_idx));
|
||||
fprintf(ctx->fp, "Blob ID: 0x%" PRIx64 "\n", page->id);
|
||||
fprintf(ctx->fp, "Sequence: %" PRIu32 "\n", page->sequence_num);
|
||||
if (page->next == SPDK_INVALID_MD_PAGE) {
|
||||
|
Loading…
Reference in New Issue
Block a user