]> xenbits.xensource.com Git - libvirt.git/commitdiff
parallels: add VIR_STORAGE_FILE_PLOOP format
authorDmitry Guryanov <dguryanov@parallels.com>
Wed, 7 May 2014 18:04:06 +0000 (22:04 +0400)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 19 May 2014 11:34:31 +0000 (12:34 +0100)
Add VIR_STORAGE_FILE_PLOOP format. This format is used
to store disk images for virtual machines in PCS and containers
in PCS, OpenVZ and also in Parallels Desktop for Mac.

This format is described on OpenVZ site -
https://openvz.org/Ploop (together with ploop devices). It
consists of XML descriptor and one or more image files: base
image and deltas. Format of the image files described here:
https://openvz.org/Ploop/format.

This patch only adds VIR_STORAGE_FILE_PLOOP constant, consequent
patches will use it in parallels driver.

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
src/util/virstoragefile.c
src/util/virstoragefile.h

index 96af27bf001fdebfa24ca0f0151f0aac29a8ee07..5c1ab6204ba1bab9c01b04dc199173bb61ffe3b7 100644 (file)
@@ -62,7 +62,7 @@ VIR_ENUM_IMPL(virStorageFileFormat,
               "cloop", "dmg", "iso",
               "vpc", "vdi",
               /* Not direct file formats, but used for various drivers */
-              "fat", "vhd",
+              "fat", "vhd", "ploop",
               /* Formats with backing file below here */
               "cow", "qcow", "qcow2", "qed", "vmdk")
 
@@ -230,6 +230,8 @@ static struct FileTypeInfo const fileTypeInfo[] = {
                                -1, {0}, 0, 0, 0, 0, NULL, NULL },
     [VIR_STORAGE_FILE_VHD] = { 0, NULL, NULL, LV_LITTLE_ENDIAN,
                                -1, {0}, 0, 0, 0, 0, NULL, NULL },
+    [VIR_STORAGE_FILE_PLOOP] = { 0, NULL, NULL, LV_LITTLE_ENDIAN,
+                               -1, {0}, 0, 0, 0, 0, NULL, NULL },
 
     /* All formats with a backing store probe below here */
     [VIR_STORAGE_FILE_COW] = {
index 0a1960311a89cc3877d0e0ae12e6b1f27fd904eb..bdc79440c0a41f316e4d3d4b15f599b879e81024 100644 (file)
@@ -72,6 +72,7 @@ typedef enum {
     /* Not direct file formats, but used for various drivers */
     VIR_STORAGE_FILE_FAT,
     VIR_STORAGE_FILE_VHD,
+    VIR_STORAGE_FILE_PLOOP,
 
     /* Not a format, but a marker: all formats below this point have
      * libvirt support for following a backing chain */