提交 5bc22e12 编写于 作者: E Eric Blake

docs: tweak virsh restore warning

* tools/virsh.pod: Fix grammar, and clarify wording.
* src/qemu/qemu_driver.c (qemudDomainObjStart): Drop redundant
condition.
上级 2999bb06
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册