From 084b613ce75e5f0867683d4f9e0894b7388abe39 Mon Sep 17 00:00:00 2001 From: Arunpandian J Date: Fri, 4 Feb 2022 15:25:50 +0530 Subject: [PATCH] nvme: Add Enhanced Controller Meta Data(FID: 0x7D) Reviewed-by: Steven Seungcheol Lee Signed-off-by: Arunpandian J --- nvme-print.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.50.1