diff options
author | Robert Wing <rew@FreeBSD.org> | 2021-02-27 21:05:52 +0000 |
---|---|---|
committer | Robert Wing <rew@FreeBSD.org> | 2021-02-27 21:05:52 +0000 |
commit | da9713917eb26b67bafc740384ccd44f7dff09f2 (patch) | |
tree | 13cc06cd345ae9c707e43dbb523ba7cbee593b5f /usr.sbin/bhyve/snapshot.h | |
parent | b7fd9c4e5ebc69934205980d9f628ef8f21fb288 (diff) | |
download | src-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