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>
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>
<value>handle</value>
<value>loop</value>
<value>nbd</value>
+ <value>ploop</value>
</choice>
</attribute>
</optional>
<value>vdi</value>
<value>fat</value>
<value>vhd</value>
+ <value>ploop</value>
<ref name='storageFormatBacking'/>
</choice>
</define>
"path",
"handle",
"loop",
- "nbd")
+ "nbd",
+ "ploop")
VIR_ENUM_IMPL(virDomainFSAccessMode, VIR_DOMAIN_FS_ACCESSMODE_LAST,
"passthrough",
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;
"local",
"handle",
NULL,
+ NULL,
NULL);
VIR_ENUM_DECL(qemuNumaPolicy)
<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'/>