提交 34b3c64a 编写于 作者: C Chris Lalancette

Report better error if qemuSnapshotIsAllowed failed.

Signed-off-by: NChris Lalancette <clalance@redhat.com>
上级 bdb844e9
...@@ -10780,8 +10780,8 @@ static int qemuDomainSnapshotIsAllowed(virDomainObjPtr vm) ...@@ -10780,8 +10780,8 @@ static int qemuDomainSnapshotIsAllowed(virDomainObjPtr vm)
(!vm->def->disks[i]->driverType || (!vm->def->disks[i]->driverType ||
STRNEQ(vm->def->disks[i]->driverType, "qcow2"))) { STRNEQ(vm->def->disks[i]->driverType, "qcow2"))) {
qemuReportError(VIR_ERR_OPERATION_INVALID, qemuReportError(VIR_ERR_OPERATION_INVALID,
_("Disk device '%s' does not support snapshotting"), _("Disk '%s' does not support snapshotting"),
vm->def->disks[i]->info.alias); vm->def->disks[i]->src);
return 0; return 0;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册