Skip to content

Commit 6d38953

Browse files
authored
Merge pull request #230 from sc108-lee/fix/io_cmd
ioctl: nvme_io_args.dspec(Directive Specific) value is 16 bits
2 parents 5b727c0 + a849f97 commit 6d38953

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nvme/ioctl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3827,8 +3827,8 @@ static inline int nvme_flush(int fd, __u32 nsid) {
38273827
* @reftag: This field specifies the Initial Logical Block Reference Tag
38283828
* expected value. Used only if the namespace is formatted to use
38293829
* end-to-end protection information.
3830-
* @dsm: Data set management attributes, see &enum nvme_io_dsm_flags
38313830
* @dspec: Directive specific value
3831+
* @dsm: Data set management attributes, see &enum nvme_io_dsm_flags
38323832
*/
38333833
struct nvme_io_args {
38343834
__u64 slba;
@@ -3847,8 +3847,8 @@ struct nvme_io_args {
38473847
__u16 control;
38483848
__u16 apptag;
38493849
__u16 appmask;
3850+
__u16 dspec;
38503851
__u8 dsm;
3851-
__u8 dspec;
38523852
} __attribute__((__packed__, aligned(__alignof__(__u64))));
38533853

38543854
/**

0 commit comments

Comments
 (0)