blob: report unexpected descriptor types

When printing blob metadata via blobcli, descriptor types that do not
have full dump support should not be silently ignored. This prints a
message that indicates an unsupported descriptor type was encountered
so that the person debugging with blobcli knows that there is more
metadata present.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: Id30b671fd9dee1ec12e10625eb2af4c1e43eda27
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11258
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: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Mike Gerdts 2021-12-20 16:02:42 +00:00 committed by Jim Harris
parent 6e440ff1d1
commit 8caf8f5ef7

View File

@ -4788,6 +4788,7 @@ bs_dump_print_md_page(struct spdk_bs_load_ctx *ctx)
bs_dump_print_type_flags(ctx, desc);
} else {
/* Error */
fprintf(ctx->fp, "Unknown descriptor type %" PRIu8 "\n", desc->type);
}
/* Advance to the next descriptor */
cur_desc += sizeof(*desc) + desc->length;