Skip to content

Commit e67ebcc

Browse files
ikegami-tigaw
authored andcommitted
linux: change nvme_transport_handle_get_name to return base name
Since the almost nvme-cli caller functions expected the base name. Signed-off-by: Tokunori Ikegami <[email protected]>
1 parent 675d13b commit e67ebcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libnvme/src/nvme/linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ int nvme_transport_handle_get_fd(struct nvme_transport_handle *hdl)
161161

162162
const char *nvme_transport_handle_get_name(struct nvme_transport_handle *hdl)
163163
{
164-
return hdl->name;
164+
return basename(hdl->name);
165165
}
166166

167167
bool nvme_transport_handle_is_blkdev(struct nvme_transport_handle *hdl)

0 commit comments

Comments
 (0)