Report better error if qemuSnapshotIsAllowed failed.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
Chris Lalancette 2010-04-23 11:59:23 -04:00
parent bdb844e996
commit 34b3c64a98

View File

@ -10780,8 +10780,8 @@ static int qemuDomainSnapshotIsAllowed(virDomainObjPtr vm)
(!vm->def->disks[i]->driverType ||
STRNEQ(vm->def->disks[i]->driverType, "qcow2"))) {
qemuReportError(VIR_ERR_OPERATION_INVALID,
_("Disk device '%s' does not support snapshotting"),
vm->def->disks[i]->info.alias);
_("Disk '%s' does not support snapshotting"),
vm->def->disks[i]->src);
return 0;
}
}