[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH libvirt 5/6] docs: add documentation and schema for MTP filesystem type



Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
---
 docs/formatdomain.html.in     |  9 +++++++++
 docs/schemas/domaincommon.rng | 15 ++++++++++++---
 2 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index e5b1adb..938409b 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -2309,6 +2309,10 @@
       &lt;target dir='/import/from/host'/&gt;
       &lt;readonly/&gt;
     &lt;/filesystem&gt;
+    &lt;filesystem type='mtp'&gt;
+      &lt;source dir='/export/to/guest'/&gt;
+      &lt;target name='my-vm-template'/&gt;
+    &lt;/filesystem&gt;
     ...
   &lt;/devices&gt;
   ...</pre>
@@ -2367,6 +2371,11 @@
           A directory inside the guest will be bound to another
           directory inside the guest. Only used by LXC driver
           <span class="since"> (since 0.9.13)</span></dd>
+        <dt><code>type='mtp'</code></dt>
+        <dd>
+          A host directory will be exposed to the guest as a MTP
+          device. Only used by QEMU/KVM driver
+          <span class="since"> (since 1.2.8)</span></dd>
         </dl>
 
       The filesystem block has an optional attribute <code>accessmode</code>
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 11f0fd0..dd870ef 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1899,9 +1899,18 @@
       </choice>
       <interleave>
         <element name="target">
-          <attribute name="dir">
-            <ref name="absDirPath"/>
-          </attribute>
+          <choice>
+            <group>
+              <attribute name="dir">
+                <ref name="absDirPath"/>
+              </attribute>
+            </group>
+            <group>
+              <attribute name="name">
+                <ref name="genericName"/>
+              </attribute>
+            </group>
+          </choice>
           <empty/>
         </element>
         <optional>
-- 
1.9.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]