From: Steven Seungcheol Lee Date: Wed, 8 Feb 2023 04:56:11 +0000 (+0900) Subject: types.h: Add FDP related Status Code X-Git-Tag: v1.5~60 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1d333d71bb1a40d35566f3d1191460d85d650180;p=users%2Fsagi%2Flibnvme.git types.h: Add FDP related Status Code Generic Command Status Values from TP4146 Flexible Data Placement 2022.11.30 Ratified Signed-off-by: Steven Seungcheol Lee --- diff --git a/src/nvme/types.h b/src/nvme/types.h index eed50ef9..3cc407f6 100644 --- a/src/nvme/types.h +++ b/src/nvme/types.h @@ -5941,6 +5941,13 @@ struct nvme_mi_vpd_hdr { * @NVME_SC_ADMIN_CMD_MEDIA_NOT_READY: Admin Command Media Not Ready: The Admin * command requires access to media and * the media is not ready. + * @NVME_SC_FDP_DISABLED: Command is not allowed when + * Flexible Data Placement is disabled. + * @NVME_SC_INVALID_PLACEMENT_HANDLE_LIST: The Placement Handle List is invalid + * due to invalid Reclaim Unit Handle Identifier or + * valid Reclaim Unit Handle Identifier but restricted or + * the Placement Handle List number of entries exceeded the + * maximum number allowed. * @NVME_SC_LBA_RANGE: LBA Out of Range: The command references * an LBA that exceeds the size of the namespace. * @NVME_SC_CAP_EXCEEDED: Capacity Exceeded: Execution of the @@ -6285,6 +6292,8 @@ enum nvme_status_field { NVME_SC_TRAN_TPORT_ERROR = 0x22, NVME_SC_PROHIBITED_BY_CMD_AND_FEAT = 0x23, NVME_SC_ADMIN_CMD_MEDIA_NOT_READY = 0x24, + NVME_SC_FDP_DISABLED = 0x29, + NVME_SC_INVALID_PLACEMENT_HANDLE_LIST = 0x2A, NVME_SC_LBA_RANGE = 0x80, NVME_SC_CAP_EXCEEDED = 0x81, NVME_SC_NS_NOT_READY = 0x82,