From: Daniel P. Berrange Date: Mon, 22 Apr 2013 14:06:14 +0000 (+0100) Subject: Add support for storage format in FS X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ada14b86cc46dd592fba9888218d9950737ecc9a;p=libvirt.git Add support for storage format in FS Extend the element in filesystem devices to allow a storage format to be set. The new attribute uses 'format' to reflect the storage format. This is different from the element in disk devices which use 'type' to reflect the storage format. This is because the 'type' attribute on filesystem devices is already used for the driver backend, for which the disk devices use the 'name' attribute. Arggggh. Anyway for disks we have And for filesystems this change means we now have Signed-off-by: Daniel P. Berrange --- diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index ba2586e516..31c132b94e 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -1883,6 +1883,13 @@ <target dir='/import/from/host'/> <readonly/> </filesystem> + <filesystem type='file' accessmode='passthrough'> + <driver name='loop' type='raw'/> + <driver type='path' wrpolicy='immediate'/> + <source file='/export/to/guest.img'/> + <target dir='/import/from/host'/> + <readonly/> + </filesystem> ... </devices> ... @@ -1974,6 +1981,23 @@ +
driver
+
+ The optional driver element allows specifying further details + related to the hypervisor driver used to provide the filesystem. + Since 1.0.6 +
    +
  • + If the hypervisor supports multiple backend drivers, then + the type attribute selects the primary + backend driver name, while the format + attribute provides the format type. For example, LXC + supports a type of "loop", with a format of "raw". QEMU + supports a type of "path" or "handle", but no formats. +
  • +
+
+
source
The resource on the host that is being accessed in the guest. The diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 4fdacab5c4..6078b7a758 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -888,7 +888,7 @@ - + @@ -1270,7 +1270,7 @@ - + @@ -1314,13 +1314,13 @@ - + aio - + raw dir @@ -1518,6 +1518,9 @@ file + + + @@ -1531,6 +1534,9 @@ block + + + @@ -1547,6 +1553,9 @@ mount + + + @@ -1554,22 +1563,6 @@ - - - - - path - handle - - - - - immediate - - - - - @@ -1578,6 +1571,9 @@ bind + + + @@ -1591,6 +1587,9 @@ template + + + @@ -1604,6 +1603,9 @@ ram + + + @@ -1661,6 +1663,35 @@ + + + + + + + path + handle + loop + + + + + + + + + + + immediate + + + + + +