Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyvectl/bhyvectl.c
Show First 20 Lines • Show All 1,733 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static int | static int | ||||
snapshot_request(struct vmctx *ctx, const char *file, enum ipc_opcode code) | snapshot_request(struct vmctx *ctx, const char *file, enum ipc_opcode code) | ||||
{ | { | ||||
struct checkpoint_op op; | struct checkpoint_op op; | ||||
op.op = code; | op.op = code; | ||||
strlcpy(op.snapshot_filename, file, MAX_SNAPSHOT_VMNAME); | strlcpy(op.snapshot_filename, file, MAX_SNAPSHOT_FILENAME); | ||||
return (send_checkpoint_op_req(ctx, &op)); | return (send_checkpoint_op_req(ctx, &op)); | ||||
} | } | ||||
#endif | #endif | ||||
int | int | ||||
main(int argc, char *argv[]) | main(int argc, char *argv[]) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 664 Lines • Show Last 20 Lines |