Skip to content

Commit c1a55a5

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 bd53d28 commit c1a55a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)