mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
add ploop fs driver type
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>
This commit is contained in:
parent
6514c04c18
commit
c8a6f844c3
@ -2626,7 +2626,8 @@
|
||||
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>
|
||||
|
@ -2003,6 +2003,7 @@
|
||||
<value>handle</value>
|
||||
<value>loop</value>
|
||||
<value>nbd</value>
|
||||
<value>ploop</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
|
@ -75,6 +75,7 @@
|
||||
<value>vdi</value>
|
||||
<value>fat</value>
|
||||
<value>vhd</value>
|
||||
<value>ploop</value>
|
||||
<ref name='storageFormatBacking'/>
|
||||
</choice>
|
||||
</define>
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
@ -151,6 +151,7 @@ VIR_ENUM_IMPL(qemuDomainFSDriver, VIR_DOMAIN_FS_DRIVER_TYPE_LAST,
|
||||
"local",
|
||||
"handle",
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
VIR_ENUM_DECL(qemuNumaPolicy)
|
||||
|
@ -18,6 +18,11 @@
|
||||
<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'/>
|
||||
|
Loading…
Reference in New Issue
Block a user