]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve/snapshot: drop mkdir when creating the unix domain socket
authorRobert Wing <rew@FreeBSD.org>
Fri, 19 Feb 2021 02:48:40 +0000 (17:48 -0900)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 26 Jan 2023 18:40:37 +0000 (10:40 -0800)
commit89c376406b5b993b85d76bc2f061c679129077d2
treeb3950e25d904673c7a29765701c516e8ea786591
parent4fc5b31e2f31fcc30788c27532ca8dfff987d7bc
bhyve/snapshot: drop mkdir when creating the unix domain socket

Add /var/run/bhyve/ to BSD.var.dist so we don't have to call mkdir when
creating the unix domain socket for a given bhyve vm.

The path to the unix domain socket for a bhyve vm will now be
/var/run/bhyve/vmname instead of /var/run/bhyve/checkpoint/vmname

Move BHYVE_RUN_DIR from snapshot.c to snapshot.h so it can be shared
to bhyvectl(8).

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D28783

(cherry picked from commit 5ce2d4a1c2922821b9940473213c0d75469755fc)
etc/mtree/BSD.var.dist
share/man/man7/hier.7
usr.sbin/bhyve/snapshot.c
usr.sbin/bhyve/snapshot.h
usr.sbin/bhyvectl/bhyvectl.c