From: Arunpandian J Date: Fri, 4 Feb 2022 09:55:50 +0000 (+0530) Subject: nvme: Add Enhanced Controller Meta Data(FID: 0x7D) X-Git-Tag: v2.0-rc3~16^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=084b613ce75e5f0867683d4f9e0894b7388abe39;p=users%2Fsagi%2Fnvme-cli.git nvme: Add Enhanced Controller Meta Data(FID: 0x7D) Reviewed-by: Steven Seungcheol Lee Signed-off-by: Arunpandian J --- diff --git a/nvme-print.c b/nvme-print.c index 995bfd81..9d503330 100644 --- a/nvme-print.c +++ b/nvme-print.c @@ -6489,6 +6489,7 @@ static char *nvme_show_host_metadata_type_to_string(enum nvme_features_id fid, __u8 type) { switch (fid) { + case NVME_FEAT_FID_ENH_CTRL_METADATA: case NVME_FEAT_FID_CTRL_METADATA: switch (type) { case NVME_CTRL_METADATA_OS_CTRL_NAME: @@ -6701,6 +6702,7 @@ void nvme_feature_show_fields(enum nvme_features_id fid, unsigned int result, un case NVME_FEAT_FID_SPINUP_CONTROL: printf("\tSpinup control feature Enabled: %s\n", (result & 1) ? "True" : "False"); break; + case NVME_FEAT_FID_ENH_CTRL_METADATA: case NVME_FEAT_FID_CTRL_METADATA: case NVME_FEAT_FID_NS_METADATA: nvme_show_host_metadata(fid, (struct nvme_host_metadata *)buf);