diff --git a/nvme-print-stdout.c b/nvme-print-stdout.c index b37f2dbf0a..a1b9573622 100644 --- a/nvme-print-stdout.c +++ b/nvme-print-stdout.c @@ -4341,6 +4341,9 @@ static void stdout_self_test_result(struct nvme_st_result *res) case NVME_ST_CODE_EXTENDED: printf(" Extended device self-test operation"); break; + case NVME_ST_CODE_HOST_INIT: + printf(" Host-Initiated Refresh operation"); + break; case NVME_ST_CODE_VS: printf(" Vendor specific"); break; diff --git a/nvme.c b/nvme.c index 9b4f335a34..36a9b7a98c 100644 --- a/nvme.c +++ b/nvme.c @@ -4429,6 +4429,7 @@ static int device_self_test(int argc, char **argv, struct command *cmd, struct p "0h Show current state of device self-test operation\n" "1h Start a short device self-test operation\n" "2h Start a extended device self-test operation\n" + "3h Start a Host-Initiated Refresh operation\n" "eh Start a vendor specific device self-test operation\n" "fh Abort the device self-test operation"; const char *wait = "Wait for the test to finish"; @@ -4501,6 +4502,8 @@ static int device_self_test(int argc, char **argv, struct command *cmd, struct p printf("Extended Device self-test started\n"); else if (cfg.stc == NVME_ST_CODE_SHORT) printf("Short Device self-test started\n"); + else if (cfg.stc == NVME_ST_CODE_HOST_INIT) + printf("Host-Initiated Refresh started\n"); if (cfg.wait && cfg.stc != NVME_ST_CODE_ABORT) err = wait_self_test(dev);