From 2bc495e1d44092f7f35da8fd3b0cc45363507adf Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Sat, 20 Feb 2021 01:05:58 +0530 Subject: [PATCH] nvme-print: add status_to_string for IO command specific status codes Signed-off-by: Gollu Appalanaidu --- nvme-print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvme-print.c b/nvme-print.c index fbc34a9e..b3d33a90 100755 --- a/nvme-print.c +++ b/nvme-print.c @@ -4999,6 +4999,10 @@ const char *nvme_status_to_string(__u16 status) return "ANA_ATTACH_FAIL: The controller is not attached to the namespace as a result of an ANA condition"; case NVME_SC_BAD_ATTRIBUTES: return "BAD_ATTRIBUTES: Bad attributes were given"; + case NVME_SC_INVALID_PI: + return "INVALID_PROTECION_INFO: The Protection Information Field settings specified in the command are invalid"; + case NVME_SC_READ_ONLY: + return "WRITE_ATTEMPT_READ_ONLY_RANGE: The LBA range specified contains read-only blocks"; case NVME_SC_CMD_SIZE_LIMIT_EXCEEDED: return "CMD_SIZE_LIMIT_EXCEEDED: Command size limit exceeded"; case NVME_SC_WRITE_FAULT: -- 2.50.1