Page MenuHomeFreeBSD

bhyvectl: reduce code duplication
ClosedPublic

Authored by rew on Feb 23 2021, 1:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 28 2024, 11:34 AM
Unknown Object (File)
Nov 24 2024, 6:36 PM
Unknown Object (File)
Nov 24 2024, 6:35 PM
Unknown Object (File)
Nov 24 2024, 6:35 PM
Unknown Object (File)
Nov 24 2024, 6:20 PM
Unknown Object (File)
Oct 23 2024, 10:35 PM
Unknown Object (File)
Oct 18 2024, 3:14 AM
Unknown Object (File)
Oct 4 2024, 6:25 AM

Details

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable