Skip to content

Commit e256bb6

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 <ikegami.t@gmail.com>
1 parent bee9525 commit e256bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)