]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Fix app tag and mask setting
authorKeith Busch <keith.busch@intel.com>
Tue, 1 Aug 2017 01:24:57 +0000 (21:24 -0400)
committerKeith Busch <keith.busch@intel.com>
Tue, 1 Aug 2017 01:24:57 +0000 (21:24 -0400)
These were being set to each other's value.

https://github.com/linux-nvme/nvme-cli/issues/212

Signed-off-by: Keith Busch <keith.busch@intel.com>
nvme-ioctl.c

index f49f1c0235f84b2695216212f611af1ca38b82d2..e0955b7efa4c8aa8c937561db56acbf97efdc717 100644 (file)
@@ -138,8 +138,8 @@ int nvme_io(int fd, __u8 opcode, __u64 slba, __u16 nblocks, __u16 control,
                .slba           = slba,
                .dsmgmt         = dsmgmt,
                .reftag         = reftag,
-               .appmask        = apptag,
-               .apptag         = appmask,
+               .appmask        = appmask,
+               .apptag         = apptag,
        };
        return ioctl(fd, NVME_IOCTL_SUBMIT_IO, &io);
 }