diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-30 22:36:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-30 22:36:07 +0000 |
commit | 97e3d220503a676acd81839dea289f4e700d8bd8 (patch) | |
tree | 69791901e1ca15319c5c63ffb52fe9cc686f8bee /src/nvme/ioctl.h | |
parent | Adding upstream version 1.4. (diff) | |
download | libnvme-97e3d220503a676acd81839dea289f4e700d8bd8.tar.xz libnvme-97e3d220503a676acd81839dea289f4e700d8bd8.zip |
Adding upstream version 1.5.upstream/1.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/nvme/ioctl.h')
-rw-r--r-- | src/nvme/ioctl.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nvme/ioctl.h b/src/nvme/ioctl.h index 32e722e..4d843bc 100644 --- a/src/nvme/ioctl.h +++ b/src/nvme/ioctl.h @@ -3036,6 +3036,7 @@ int nvme_ns_mgmt(struct nvme_ns_mgmt_args *args); * @timeout: Override the default timeout to this value in milliseconds; * set to 0 to use the system default. * @csi: Command Set Identifier + * @data: Host Software Specified Fields that defines ns creation parameters * * On successful creation, the namespace exists in the subsystem, but is not * attached to any controller. Use the nvme_ns_attach_ctrls() to assign the @@ -3045,7 +3046,8 @@ int nvme_ns_mgmt(struct nvme_ns_mgmt_args *args); * &enum nvme_status_field) or -1 with errno set otherwise. */ static inline int nvme_ns_mgmt_create(int fd, struct nvme_id_ns *ns, - __u32 *nsid, __u32 timeout, __u8 csi) + __u32 *nsid, __u32 timeout, __u8 csi, + struct nvme_ns_mgmt_host_sw_specified *data) { struct nvme_ns_mgmt_args args = { .result = nsid, @@ -3056,6 +3058,9 @@ static inline int nvme_ns_mgmt_create(int fd, struct nvme_id_ns *ns, .nsid = NVME_NSID_NONE, .sel = NVME_NS_MGMT_SEL_CREATE, .csi = csi, + .rsvd1 = { 0, }, + .rsvd2 = NULL, + .data = data, }; return nvme_ns_mgmt(&args); @@ -3084,6 +3089,9 @@ static inline int nvme_ns_mgmt_delete(int fd, __u32 nsid) .nsid = nsid, .sel = NVME_NS_MGMT_SEL_DELETE, .csi = 0, + .rsvd1 = { 0, }, + .rsvd2 = NULL, + .data = NULL, }; return nvme_ns_mgmt(&args); |