* [PATCH] nvme-cli: make it use NVME_IDENTIFY_DATA_SIZE
@ 2018-02-08 13:30 Minwoo Im
0 siblings, 0 replies; only message in thread
From: Minwoo Im @ 2018-02-08 13:30 UTC (permalink / raw)
Update 0x1000 hard coding magic value to NVME_IDENTIFY_DATA_SIZE which
was added in linux-nvme driver commit 0add5e8e588c.
Signed-off-by: Minwoo Im <minwoo.im.dev at gmail.com>
---
nvme-ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nvme-ioctl.c b/nvme-ioctl.c
index a6e1e01..9261e27 100644
--- a/nvme-ioctl.c
+++ b/nvme-ioctl.c
@@ -342,7 +342,7 @@ int nvme_identify(int fd, __u32 nsid, __u32 cdw10, void *data)
.opcode = nvme_admin_identify,
.nsid = nsid,
.addr = (__u64)(uintptr_t) data,
- .data_len = 0x1000,
+ .data_len = NVME_IDENTIFY_DATA_SIZE,
.cdw10 = cdw10,
};
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-02-08 13:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-08 13:30 [PATCH] nvme-cli: make it use NVME_IDENTIFY_DATA_SIZE Minwoo Im
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox