From ea71d8281641694d4249dd1d703fe208c54b917c Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 15 Jun 2011 14:24:53 -0600 Subject: [PATCH] virsh: clarify snapshot vs. save * tools/virsh.c (info_snapshot_create, info_save): Clarify description. * tools/virsh.pod (save): Likewise. --- tools/virsh.c | 6 +++--- tools/virsh.pod | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index abc46142fe..75fb142034 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -1517,7 +1517,7 @@ cmdStart(vshControl *ctl, const vshCmd *cmd) */ static const vshCmdInfo info_save[] = { {"help", N_("save a domain state to a file")}, - {"desc", N_("Save a running domain.")}, + {"desc", N_("Save the RAM state of a running domain.")}, {NULL, NULL} }; @@ -11035,8 +11035,8 @@ cmdQuit(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) * "snapshot-create" command */ static const vshCmdInfo info_snapshot_create[] = { - {"help", N_("Create a snapshot")}, - {"desc", N_("Snapshot create")}, + {"help", N_("Create a snapshot from XML")}, + {"desc", N_("Create a snapshot (disk and RAM) from XML")}, {NULL, NULL} }; diff --git a/tools/virsh.pod b/tools/virsh.pod index e7dcd41d82..93bff1ebbc 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -600,7 +600,8 @@ the state file was created. =item B I I -Saves a running domain to a state file so that it can be restored +Saves a running domain (RAM, but not disk state) to a state file so that +it can be restored later. Once saved, the domain will no longer be running on the system, thus the memory allocated for the domain will be free for other domains to use. B restores from this state file. @@ -609,6 +610,11 @@ This is roughly equivalent to doing a hibernate on a running computer, with all the same limitations. Open network connections may be severed upon restore, as TCP timeouts may have expired. +Domain saved state files assume that disk images will be unchanged +between the creation and restore point. For a more complete system +restore point, where the disk state is saved alongside the memory +state, see the B family of commands. + =item B optional I<--set> B I I<--config> I<--live> I<--current>