Skip to contentSkip to conversation

nvme-cli: make it use NVME_IDENTIFY_DATA_SIZE

PATCH New Minwoo Im 1 participant 1 message Feb 8, 2018 NVMe

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

PATCH 1/1 nvme-cli: make it use NVME_IDENTIFY_DATA_SIZE

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(-)
nvme-ioctl.c +1 -1
index a6e1e01..9261e27 100644
@@ -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,
 	};
 
Signature · 1 line
2.7.4