]> xenbits.xensource.com Git - libvirt.git/commitdiff
Small fixes for qemu save compression.
authorChris Lalancette <clalance@redhat.com>
Mon, 17 Aug 2009 10:34:53 +0000 (12:34 +0200)
committerChris Lalancette <clalance@redhat.com>
Thu, 20 Aug 2009 07:27:03 +0000 (09:27 +0200)
Fix up a small memory leak pointed out by DanB; I was forgetting
to release memory allocated to driver->saveImageFormat.
Also add the "save_image_format" and "security" entries to
the augeas lens.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
qemud/libvirtd_qemu.aug
qemud/test_libvirtd_qemu.aug
src/qemu_driver.c

index 8b8aab254e2901c5c74d7b9edaa5ee335d2b4877..2175e1412888a3e3c5743484e6598833083c9b91 100644 (file)
@@ -29,10 +29,12 @@ module Libvirtd_qemu =
                  | str_entry "vnc_password"
                  | bool_entry "vnc_sasl"
                  | str_entry "vnc_sasl_dir"
+                 | str_entry "security_driver"
                  | str_entry "user"
                  | str_entry "group"
                  | str_array_entry "cgroup_controllers"
                  | str_array_entry "cgroup_device_acl"
+                 | str_entry "save_image_format"
 
    (* Each enty in the config is one of the following three ... *)
    let entry = vnc_entry
index 274c89d8b15d61fb1784a98d39641568b2131850..72f2227932f95c61ab6b2ce1fdc1c795703bba1d 100644 (file)
@@ -80,6 +80,8 @@ vnc_sasl = 1
 #
 vnc_sasl_dir = \"/some/directory/sasl2\"
 
+security_driver = \"selinux\"
+
 user = \"root\"
 
 group = \"root\"
@@ -87,6 +89,8 @@ group = \"root\"
 cgroup_controllers = [ \"cpu\", \"devices\" ]
 
 cgroup_device_acl = [ \"/dev/null\", \"/dev/full\", \"/dev/zero\" ]
+
+save_image_format = \"gzip\"
 "
 
    test Libvirtd_qemu.lns get conf =
@@ -170,7 +174,9 @@ cgroup_device_acl = [ \"/dev/null\", \"/dev/full\", \"/dev/zero\" ]
 { "#comment" = "" }
 { "vnc_sasl_dir" = "/some/directory/sasl2" }
 { "#empty" }
-{ "user"= "root" }
+{ "security_driver" = "selinux" }
+{ "#empty" }
+{ "user" = "root" }
 { "#empty" }
 { "group" = "root" }
 { "#empty" }
@@ -184,3 +190,5 @@ cgroup_device_acl = [ \"/dev/null\", \"/dev/full\", \"/dev/zero\" ]
     { "2" = "/dev/full" }
     { "3" = "/dev/zero" }
 }
+{ "#empty" }
+{ "save_image_format" = "gzip" }
index 70d3d55bc11144a1385a6dad6d5bc9813177c9f4..eb22940ad9973cd3e73fcf42c31714589bcc4a6e 100644 (file)
@@ -672,6 +672,7 @@ qemudShutdown(void) {
     VIR_FREE(qemu_driver->vncListen);
     VIR_FREE(qemu_driver->vncPassword);
     VIR_FREE(qemu_driver->vncSASLdir);
+    VIR_FREE(qemu_driver->saveImageFormat);
 
     /* Free domain callback list */
     virDomainEventCallbackListFree(qemu_driver->domainEventCallbacks);