aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve/snapshot.h
diff options
context:
space:
mode:
authorRobert Wing <rew@FreeBSD.org>2021-02-27 21:05:52 +0000
committerRobert Wing <rew@FreeBSD.org>2021-02-27 21:05:52 +0000
commitda9713917eb26b67bafc740384ccd44f7dff09f2 (patch)
tree13cc06cd345ae9c707e43dbb523ba7cbee593b5f /usr.sbin/bhyve/snapshot.h
parentb7fd9c4e5ebc69934205980d9f628ef8f21fb288 (diff)
downloadsrc-da9713917eb26b67bafc740384ccd44f7dff09f2.tar.gz
src-da9713917eb26b67bafc740384ccd44f7dff09f2.zip
bhyvectl: reduce code duplication
Combine send_start_checkpoint() and send_start_suspend() into a single function named snapshot_request(). snapshot_request() is equivalent to send_start_checkpoint() and send_start_suspend() except that it takes an additional argument. The additional argument, enum ipc_opcode, is used to determine the type of snapshot request being performed. Also, switch to using strlcpy instead of strncpy. Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D28878
Diffstat (limited to 'usr.sbin/bhyve/snapshot.h')
0 files changed, 0 insertions, 0 deletions