Skip to content

Commit c4ab940

Browse files
committed
nvme-wrap: use rotational media information log libnvme-mi API
Since the libnvme-mi missed to add but will be added then use it. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 56cf51b commit c4ab940

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nvme-wrap.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,5 @@ int nvme_cli_get_log_mgmt_addr_list(struct nvme_dev *dev, __u32 len,
440440
int nvme_cli_get_log_rotational_media_info(struct nvme_dev *dev, __u16 endgid, __u32 len,
441441
struct nvme_rotational_media_info_log *info)
442442
{
443-
if (dev->type == NVME_DEV_DIRECT)
444-
return nvme_get_log_rotational_media_info(dev->direct.fd, endgid, len, info);
445-
446-
return -ENODEV;
443+
return do_admin_op(get_log_rotational_media_info, dev, endgid, len, info);
447444
}

0 commit comments

Comments
 (0)