]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print: add status_to_string for IO command specific status codes
authorGollu Appalanaidu <anaidu.gollu@samsung.com>
Fri, 19 Feb 2021 19:35:58 +0000 (01:05 +0530)
committerKeith Busch <kbusch@kernel.org>
Fri, 19 Feb 2021 19:51:06 +0000 (12:51 -0700)
Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com>
nvme-print.c

index fbc34a9e0772fc9c587fb07c05489a9d128217cf..b3d33a90f69c9c9e4ef04eedd6826768625630b9 100755 (executable)
@@ -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: