[PATCH 1/4] qemu: Improve info message and remove a variable in qemuDomainManagedSave

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

 



Mention the domain name that is being saved and remove the unneeded
variable that only stores a constant.
---
 src/qemu/qemu_driver.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index f51e766..23eb4fb 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -3118,7 +3118,6 @@ qemuDomainManagedSave(virDomainPtr dom, unsigned int flags)
     virDomainObjPtr vm;
     char *name = NULL;
     int ret = -1;
-    int compressed;

     virCheckFlags(VIR_DOMAIN_SAVE_BYPASS_CACHE |
                   VIR_DOMAIN_SAVE_RUNNING |
@@ -3144,10 +3143,10 @@ qemuDomainManagedSave(virDomainPtr dom, unsigned int flags)
     if (!(name = qemuDomainManagedSavePath(driver, vm)))
         goto cleanup;

-    VIR_INFO("Saving state to %s", name);
+    VIR_INFO("Saving state of domain '%s' to '%s'", vm->def->name, name);

-    compressed = QEMU_SAVE_FORMAT_RAW;
-    if ((ret = qemuDomainSaveInternal(driver, dom, vm, name, compressed,
+    if ((ret = qemuDomainSaveInternal(driver, dom, vm, name,
+                                      QEMU_SAVE_FORMAT_RAW,
                                       NULL, flags)) == 0)
         vm->hasManagedSave = true;

-- 
1.8.2.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]