mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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:
parent
2999bb06f3
commit
5bc22e129b
@ -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))
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user