]> xenbits.xensource.com Git - libvirt.git/commitdiff
add ploop fs driver type
authorDmitry Guryanov <dguryanov@parallels.com>
Tue, 13 Jan 2015 11:27:36 +0000 (14:27 +0300)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Jan 2015 13:07:46 +0000 (14:07 +0100)
Ploop is a pseudo device which makeit possible to access
to an image in a file as a block device. Like loop devices,
but with additional features, like snapshots, write tracker
and without double-caching.

It used in PCS for containers and in OpenVZ. You can manage
ploop devices and images with ploop utility
(http://git.openvz.org/?p=ploop).

Signed-off-by: Dmitry Guryanov <dguryanov@parallels.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
docs/schemas/storagecommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
tests/domainschemadata/domain-parallels-ct-simple.xml

index dca09b6a9922383a91d816f05075f08846d08ada..f8d5f8921d0b556ef56beddaf58e30cd237373d0 100644 (file)
             attribute provides the format type. For example, LXC
             supports a type of "loop", with a format of "raw" or
             "nbd" with any format. QEMU supports a type of "path"
-            or "handle", but no formats.
+            or "handle", but no formats. Parallels driver supports
+            a type of "ploop" with a format of "ploop".
           </li>
         </ul>
       </dd>
index 7fe1387972b5beaa2ddbec1bddbf15da6a2fd33d..c428ddf4f9cf7c2bf666ac9b28c992e09f5def32 100644 (file)
             <value>handle</value>
             <value>loop</value>
             <value>nbd</value>
+            <value>ploop</value>
           </choice>
         </attribute>
       </optional>
index 629505f14726c97b516d32d66847b11d1b9ce676..5f71b10b305d675c928cb48747edcb8ac7037bfe 100644 (file)
@@ -75,6 +75,7 @@
       <value>vdi</value>
       <value>fat</value>
       <value>vhd</value>
+      <value>ploop</value>
       <ref name='storageFormatBacking'/>
     </choice>
   </define>
index cdd64b1cdb78363f9631a5cac9bdef5eecd8dc6b..8792f5ee7098c2bedc0c4280aeb11a38ccda35a8 100644 (file)
@@ -351,7 +351,8 @@ VIR_ENUM_IMPL(virDomainFSDriver, VIR_DOMAIN_FS_DRIVER_TYPE_LAST,
               "path",
               "handle",
               "loop",
-              "nbd")
+              "nbd",
+              "ploop")
 
 VIR_ENUM_IMPL(virDomainFSAccessMode, VIR_DOMAIN_FS_ACCESSMODE_LAST,
               "passthrough",
index 1f77720a91607fefc19e41d9c51cb739db9ef9c3..09ab194461f68c26f628f135efaa07bbcc651c32 100644 (file)
@@ -804,6 +804,7 @@ typedef enum {
     VIR_DOMAIN_FS_DRIVER_TYPE_HANDLE,
     VIR_DOMAIN_FS_DRIVER_TYPE_LOOP,
     VIR_DOMAIN_FS_DRIVER_TYPE_NBD,
+    VIR_DOMAIN_FS_DRIVER_TYPE_PLOOP,
 
     VIR_DOMAIN_FS_DRIVER_TYPE_LAST
 } virDomainFSDriverType;
index 2d634a3a839c80b4087348ac97f0db78b476a0ae..c041ee77bdd0656d0ff68c7e19a608ddae15c4c7 100644 (file)
@@ -151,6 +151,7 @@ VIR_ENUM_IMPL(qemuDomainFSDriver, VIR_DOMAIN_FS_DRIVER_TYPE_LAST,
               "local",
               "handle",
               NULL,
+              NULL,
               NULL);
 
 VIR_ENUM_DECL(qemuNumaPolicy)
index a2b87ce8516c886fba74f4dd8a1be67230259e48..b79e963a381aa3e90e9b24e5b61e3145c3e7df04 100644 (file)
         <source name='centos-6-x86_64'/>
         <target dir='/'/>
     </filesystem>
+    <filesystem type='file' accessmode='passthrough'>
+      <driver type='ploop' format='ploop'/>
+      <source file='/path/to/ploop/dir'/>
+      <target dir='/mnt'/>
+    </filesystem>
     <video>
       <model type='vga' vram='16777216' heads='1'>
         <acceleration accel3d='no' accel2d='no'/>