mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
Report better error if qemuSnapshotIsAllowed failed.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
This commit is contained in:
parent
bdb844e996
commit
34b3c64a98
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user