[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 7/8] Report better error if qemuSnapshotIsAllowed failed.



Signed-off-by: Chris Lalancette <clalance redhat com>
---
 src/qemu/qemu_driver.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 7314328..b0c1877 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -10673,8 +10673,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;
         }
     }
-- 
1.6.6.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]