From d715c82cc6bee9f94ecae847db5f5ecf96f36c5c Mon Sep 17 00:00:00 2001 From: Mike Gerdts Date: Thu, 18 Nov 2021 14:42:35 +0000 Subject: [PATCH] blob: print sequence and next while dumping pages Signed-off-by: Mike Gerdts Change-Id: I2873633e435560ed1199b141851ba43fffcfe2c4 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11248 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- lib/blob/blobstore.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index 051f7a2fc..690e40601 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -4552,6 +4552,12 @@ 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, "Blob ID: 0x%" PRIx64 "\n", page->id); + fprintf(ctx->fp, "Sequence: %" PRIu32 "\n", page->sequence_num); + if (page->next == SPDK_INVALID_MD_PAGE) { + fprintf(ctx->fp, "Next: None\n"); + } else { + fprintf(ctx->fp, "Next: %" PRIu32 "\n", page->next); + } fprintf(ctx->fp, "In used bit array%s:", ctx->super->clean ? "" : " (not clean: dubious)"); if (spdk_bit_array_get(ctx->bs->used_md_pages, page_idx)) { fprintf(ctx->fp, " md");