Skip to content

Commit a6ac126

Browse files
NateThorntonigaw
authored andcommitted
ioctl: set data length when retrieving LBA status
Current nvme_get_lba_status() function does specify any data_len in the admin command, resulting in zero data being returned. This is the least intrusive change as it requires no update to nvme-cli. Signed-off-by: Nate Thornton <[email protected]>
1 parent 6b61dd4 commit a6ac126

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/nvme/ioctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1568,6 +1568,7 @@ int nvme_get_lba_status(struct nvme_get_lba_status_args *args)
15681568
.opcode = nvme_admin_get_lba_status,
15691569
.nsid = args->nsid,
15701570
.addr = (__u64)(uintptr_t)args->lbas,
1571+
.data_len = (args->mndw + 1) << 2,
15711572
.cdw10 = cdw10,
15721573
.cdw11 = cdw11,
15731574
.cdw12 = cdw12,

0 commit comments

Comments
 (0)