docs: tweak virsh restore warning

* tools/virsh.pod: Fix grammar, and clarify wording.
* src/qemu/qemu_driver.c (qemudDomainObjStart): Drop redundant
condition.
This commit is contained in:
Eric Blake 2011-04-07 09:01:18 -06:00
parent 2999bb06f3
commit 5bc22e129b
2 changed files with 5 additions and 4 deletions

View File

@ -3435,7 +3435,7 @@ static int qemudDomainObjStart(virConnectPtr conn,
if (!managed_save)
goto cleanup;
if ((managed_save) && (virFileExists(managed_save))) {
if (virFileExists(managed_save)) {
ret = qemuDomainObjRestore(conn, driver, vm, managed_save);
if ((ret == 0) && (unlink(managed_save) < 0))

View File

@ -546,11 +546,12 @@ I<on_reboot> parameter in the domain's XML definition.
=item B<restore> I<state-file>
Restores a domain from an B<virsh save> state file. See I<save> for more info.
Restores a domain from a B<virsh save> state file. See I<save> for more info.
B<Note>: To avoid corrupting file system contents within the domain, you
should not reuse the saved state file to B<restore> unless you are convinced
with reverting the domain to the previous state.
should not reuse the saved state file for a second B<restore> unless you
have also reverted all storage volumes back to the same contents as when
the state file was created.
=item B<save> I<domain-id> I<state-file>