Skip to content

Commit

Permalink
libxl: Switch to ndb+unix:/// format
Browse files Browse the repository at this point in the history
Switch to the URI format specified by the protocol at
https://github.com/NetworkBlockDevice/nbd/blob/master/doc/uri.md

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
  • Loading branch information
jandryuk committed May 1, 2023
1 parent 4f073fa commit 40e2f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/libs/light/libxl_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ char *libxl__device_disk_find_local_path(libxl__gc *gc,

/* tapdisk exposes disks locally over UNIX socket NBD. */
if (disk->backend == LIBXL_DISK_BACKEND_TAP) {
path = libxl__sprintf(gc, "nbd:unix:%s", path);
path = libxl__sprintf(gc, "nbd+unix:///?socket=%s", path);
LOGD(DEBUG, guest_domid,
"Directly accessing local TAP target %s", path);
}
Expand Down

0 comments on commit 40e2f59

Please sign in to comment.