提交 2acd4a16 编写于 作者: E Eric Blake

snapshot: fix regression with system checkpoints

Regression introduced in commit d6f6b2d1.  Running
'virsh snapshot-create dom' would mistakenly report that
disks can only be specified for disk snapshots.

* src/conf/domain_conf.c (virDomainSnapshotDefParseString): Only
give error about no disk support when <disk> was found.
上级 ae2bee4c
...@@ -11622,7 +11622,7 @@ virDomainSnapshotDefParseString(const char *xmlStr, ...@@ -11622,7 +11622,7 @@ virDomainSnapshotDefParseString(const char *xmlStr,
goto cleanup; goto cleanup;
} }
VIR_FREE(nodes); VIR_FREE(nodes);
} else { } else if (i) {
virDomainReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s", virDomainReportError(VIR_ERR_ARGUMENT_UNSUPPORTED, "%s",
_("unable to handle disk requests in snapshot")); _("unable to handle disk requests in snapshot"));
goto cleanup; goto cleanup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册