Page MenuHomeFreeBSD

bhyvectl: reduce code duplication
Needs ReviewPublic

Authored by rew on Tue, Feb 23, 1:49 AM.

Details

Reviewers
None
Group Reviewers
bhyve
Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint OK
Unit
No Unit Test Coverage
Build Status
Buildable 37289
Build 34178: arc lint + arc unit