]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Add Enhanced Controller Meta Data(FID: 0x7D)
authorArunpandian J <apj.arun@samsung.com>
Fri, 4 Feb 2022 09:55:50 +0000 (15:25 +0530)
committerDaniel Wagner <dwagner@suse.de>
Fri, 4 Feb 2022 13:16:45 +0000 (14:16 +0100)
Reviewed-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Signed-off-by: Arunpandian J <apj.arun@samsung.com>
nvme-print.c

index 995bfd81b52ca1bdfac3687d00aa9fda511c0811..9d503330ac2caf80a4b2a0782842898d5663c9d8 100644 (file)
@@ -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);