Skip to content

Commit c3fb4fc

Browse files
committed
ioctl.h: ns list bug fix (wrong cns value)
original cns is not using csi field naming align NVME_IDENTIFY_CNS_CSS_ALLOCATED_NS_LIST -> NVME_IDENTIFY_CNS_CSI_ALLOCATED_NS_LIST Signed-off-by: Steven Seungcheol Lee <[email protected]>
1 parent 6a37435 commit c3fb4fc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/nvme/ioctl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ static inline int nvme_identify_active_ns_list_csi(int fd, __u32 nsid,
871871
.args_size = sizeof(args),
872872
.fd = fd,
873873
.timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
874-
.cns = NVME_IDENTIFY_CNS_NS_ACTIVE_LIST,
874+
.cns = NVME_IDENTIFY_CNS_CSI_NS_ACTIVE_LIST,
875875
.csi = csi,
876876
.nsid = nsid,
877877
.cntid = NVME_CNTLID_NONE,
@@ -908,7 +908,7 @@ static inline int nvme_identify_allocated_ns_list_csi(int fd, __u32 nsid,
908908
.args_size = sizeof(args),
909909
.fd = fd,
910910
.timeout = NVME_DEFAULT_IOCTL_TIMEOUT,
911-
.cns = NVME_IDENTIFY_CNS_ALLOCATED_NS_LIST,
911+
.cns = NVME_IDENTIFY_CNS_CSI_ALLOCATED_NS_LIST,
912912
.csi = csi,
913913
.nsid = nsid,
914914
.cntid = NVME_CNTLID_NONE,

src/nvme/types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6048,7 +6048,7 @@ enum nvme_admin_opcode {
60486048
* @NVME_IDENTIFY_CNS_UUID_LIST: A UUID List
60496049
* @NVME_IDENTIFY_CNS_DOMAIN_LIST: Domain List
60506050
* @NVME_IDENTIFY_CNS_ENDURANCE_GROUP_ID: Endurance Group List
6051-
* @NVME_IDENTIFY_CNS_CSS_ALLOCATED_NS_LIST: I/O Command Set specific Allocated Namespace
6051+
* @NVME_IDENTIFY_CNS_CSI_ALLOCATED_NS_LIST: I/O Command Set specific Allocated Namespace
60526052
* ID list
60536053
* @NVME_IDENTIFY_CNS_COMMAND_SET_STRUCTURE: Base Specification 2.0a section 5.17.2.21
60546054
*/
@@ -6074,7 +6074,7 @@ enum nvme_identify_cns {
60746074
NVME_IDENTIFY_CNS_UUID_LIST = 0x17,
60756075
NVME_IDENTIFY_CNS_DOMAIN_LIST = 0x18,
60766076
NVME_IDENTIFY_CNS_ENDURANCE_GROUP_ID = 0x19,
6077-
NVME_IDENTIFY_CNS_CSS_ALLOCATED_NS_LIST = 0x1A,
6077+
NVME_IDENTIFY_CNS_CSI_ALLOCATED_NS_LIST = 0x1A,
60786078
NVME_IDENTIFY_CNS_COMMAND_SET_STRUCTURE = 0x1C,
60796079
};
60806080

0 commit comments

Comments
 (0)