summaryrefslogtreecommitdiffstats
path: root/lib/libvmmapi
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2015-07-06 19:41:43 +0000
committerneel <neel@FreeBSD.org>2015-07-06 19:41:43 +0000
commite9213dd046f0edd0509fc61fb61035b727d53907 (patch)
tree2e58b05b9bae01e67de62dab8082e4ce31e9fa5b /lib/libvmmapi
parent0a74489e333d800a5083c31a38dd5529359c31dc (diff)
downloadFreeBSD-src-e9213dd046f0edd0509fc61fb61035b727d53907.zip
FreeBSD-src-e9213dd046f0edd0509fc61fb61035b727d53907.tar.gz
Move the 'devmem' device nodes from /dev/vmm to /dev/vmm.io
Some external tools just do a 'ls /dev/vmm' to figure out the bhyve virtual machines on the host. These tools break if the devmem device nodes also appear in /dev/vmm. Requested by: grehan
Diffstat (limited to 'lib/libvmmapi')
-rw-r--r--lib/libvmmapi/vmmapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvmmapi/vmmapi.c b/lib/libvmmapi/vmmapi.c
index e87efc9..fb8eb78 100644
--- a/lib/libvmmapi/vmmapi.c
+++ b/lib/libvmmapi/vmmapi.c
@@ -472,7 +472,7 @@ vm_create_devmem(struct vmctx *ctx, int segid, const char *name, size_t len)
if (error)
goto done;
- strlcpy(pathname, "/dev/vmm/", sizeof(pathname));
+ strlcpy(pathname, "/dev/vmm.io/", sizeof(pathname));
strlcat(pathname, ctx->name, sizeof(pathname));
strlcat(pathname, ".", sizeof(pathname));
strlcat(pathname, name, sizeof(pathname));
OpenPOWER on IntegriCloud