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
This commit is contained in:
parent
ccfe4c3f74
commit
5e4f29c037
@ -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));
|
||||
|
@ -943,7 +943,7 @@ devmem_create_cdev(const char *vmname, int segid, char *devname)
|
||||
int error;
|
||||
|
||||
error = make_dev_p(MAKEDEV_CHECKNAME, &cdev, &devmemsw, NULL,
|
||||
UID_ROOT, GID_WHEEL, 0600, "vmm/%s.%s", vmname, devname);
|
||||
UID_ROOT, GID_WHEEL, 0600, "vmm.io/%s.%s", vmname, devname);
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user