Page MenuHomeFreeBSD

bhyve/snapshot: drop mkdir when creating the unix domain socket
ClosedPublic

Authored by rew on Feb 19 2021, 3:41 AM.
Tags
None
Referenced Files
F171088226: D28783.id.diff
Tue, Sep 8, 3:18 PM
Unknown Object (File)
Sun, Sep 6, 11:14 PM
Unknown Object (File)
Sun, Sep 6, 11:30 AM
Unknown Object (File)
Sat, Sep 5, 7:12 AM
Unknown Object (File)
Sat, Sep 5, 7:06 AM
Unknown Object (File)
Fri, Sep 4, 5:57 PM
Unknown Object (File)
Thu, Sep 3, 5:11 PM
Unknown Object (File)
Thu, Sep 3, 5:01 PM

Details

Summary

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).

This review is a subset of (but does not depend on) changes found at
https://reviews.freebsd.org/D28199.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable