From: Dmitry Guryanov Date: Tue, 13 Jan 2015 11:27:36 +0000 (+0300) Subject: add ploop fs driver type X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c8a6f844c309d6732dd0c51b79c3133894d62e87;p=libvirt.git 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 --- diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index dca09b6a99..f8d5f8921d 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -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". diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 7fe1387972..c428ddf4f9 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -2003,6 +2003,7 @@ handle loop nbd + ploop diff --git a/docs/schemas/storagecommon.rng b/docs/schemas/storagecommon.rng index 629505f147..5f71b10b30 100644 --- a/docs/schemas/storagecommon.rng +++ b/docs/schemas/storagecommon.rng @@ -75,6 +75,7 @@ vdi fat vhd + ploop diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index cdd64b1cdb..8792f5ee70 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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", diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index 1f77720a91..09ab194461 100644 --- a/src/conf/domain_conf.h +++ b/src/conf/domain_conf.h @@ -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; diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 2d634a3a83..c041ee77bd 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -151,6 +151,7 @@ VIR_ENUM_IMPL(qemuDomainFSDriver, VIR_DOMAIN_FS_DRIVER_TYPE_LAST, "local", "handle", NULL, + NULL, NULL); VIR_ENUM_DECL(qemuNumaPolicy) diff --git a/tests/domainschemadata/domain-parallels-ct-simple.xml b/tests/domainschemadata/domain-parallels-ct-simple.xml index a2b87ce851..b79e963a38 100644 --- a/tests/domainschemadata/domain-parallels-ct-simple.xml +++ b/tests/domainschemadata/domain-parallels-ct-simple.xml @@ -18,6 +18,11 @@ + + + + +