]> xenbits.xensource.com Git - libvirt.git/commitdiff
Deprecate lzma and lzop in favor of xz, add dep
authorDaniel Veillard <veillard@redhat.com>
Wed, 9 Sep 2009 14:44:44 +0000 (16:44 +0200)
committerDaniel Veillard <veillard@redhat.com>
Wed, 9 Sep 2009 14:44:44 +0000 (16:44 +0200)
* src/qemu_driver.c: drop lzma and lzop images compression options
  as they are deprecated by xz
* libvirt.spec.in: add requires for xz/bzip2/gzip as they are needed
  to implement the compression options

libvirt.spec.in
src/qemu_driver.c

index 9371898ea0e5c55cfd1fd9fd794de10084bac39c..b01f9c2e9ab1c49585d09dfc670064cd5c2283b7 100644 (file)
@@ -114,6 +114,10 @@ Requires: glusterfs-client >= 2.0.1
 %if %{with_qemu}
 # From QEMU RPMs
 Requires: /usr/bin/qemu-img
+# For image compression
+Requires: gzip
+Requires: bzip2
+Requires: xz
 %else
 %if %{with_xen}
 # From Xen RPMs
index 9a9ae7374ee58db35e5e557902fece152fcef7d9..8f16e726cb61d0da4123b2d0ada3c66dca97d152 100644 (file)
@@ -3622,9 +3622,12 @@ enum qemud_save_formats {
     QEMUD_SAVE_FORMAT_RAW = 0,
     QEMUD_SAVE_FORMAT_GZIP = 1,
     QEMUD_SAVE_FORMAT_BZIP2 = 2,
-    QEMUD_SAVE_FORMAT_LZMA = 3,  /* deprecated, in favor of xz */
-    QEMUD_SAVE_FORMAT_LZOP = 4,
-    QEMUD_SAVE_FORMAT_XZ = 5,
+    /*
+     * Deprecated by xz and never used as part of a release
+     * QEMUD_SAVE_FORMAT_LZMA,
+     * QEMUD_SAVE_FORMAT_LZOP,
+     */
+    QEMUD_SAVE_FORMAT_XZ = 3,
     /* Note: add new members only at the end.
        These values are used in the on-disk format.
        Do not change or re-use numbers. */
@@ -3637,8 +3640,6 @@ VIR_ENUM_IMPL(qemudSaveCompression, QEMUD_SAVE_FORMAT_LAST,
               "raw",
               "gzip",
               "bzip2",
-              "lzma",
-              "lzop",
               "xz")
 
 struct qemud_save_header {
@@ -4381,10 +4382,6 @@ static int qemudDomainRestore(virConnectPtr conn,
             intermediate_argv[0] = "gzip";
         else if (header.compressed == QEMUD_SAVE_FORMAT_BZIP2)
             intermediate_argv[0] = "bzip2";
-        else if (header.compressed == QEMUD_SAVE_FORMAT_LZMA)
-            intermediate_argv[0] = "lzma";
-        else if (header.compressed == QEMUD_SAVE_FORMAT_LZOP)
-            intermediate_argv[0] = "lzop";
         else if (header.compressed == QEMUD_SAVE_FORMAT_XZ)
             intermediate_argv[0] = "xz";
         else if (header.compressed != QEMUD_SAVE_FORMAT_RAW) {