diff options
author | MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> | 2010-12-06 16:24:09 +0900 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2010-12-09 14:09:12 -0700 |
commit | 036ad5052b43fe9f0d197e89fd16715950408e1d (patch) | |
tree | eda09af957dc8f7f27f1b9d90161402ec75f62b9 /docs | |
parent | correct the signal's name (diff) | |
download | libvirt-036ad5052b43fe9f0d197e89fd16715950408e1d.tar.gz libvirt-036ad5052b43fe9f0d197e89fd16715950408e1d.tar.bz2 libvirt-036ad5052b43fe9f0d197e89fd16715950408e1d.zip |
add network disk support
This patch adds network disk support to libvirt/QEMU. The currently
supported protocols are nbd, rbd, and sheepdog. The XML syntax is like
this:
<disk type="network" device="disk">
<driver name="qemu" type="raw" />
<source protocol='rbd|sheepdog|nbd' name="...some image identifier...">
<host name="mon1.example.org" port="6000">
<host name="mon2.example.org" port="6000">
<host name="mon3.example.org" port="6000">
</source>
<target dev="vda" bus="virtio" />
</disk>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/schemas/domain.rng | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng index 811d559e4..44638841d 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -612,6 +612,37 @@ <ref name="diskspec"/> </interleave> </group> + <group> + <attribute name="type"> + <value>network</value> + </attribute> + <interleave> + <optional> + <element name="source"> + <attribute name="protocol"> + <choice> + <value>nbd</value> + <value>rbd</value> + <value>sheepdog</value> + </choice> + </attribute> + <attribute name="name"/> + <zeroOrMore> + <element name="host"> + <attribute name="name"> + <ref name="genericName"/> + </attribute> + <attribute name="port"> + <ref name="unsignedInt"/> + </attribute> + </element> + </zeroOrMore> + <empty/> + </element> + </optional> + <ref name="diskspec"/> + </interleave> + </group> <ref name="diskspec"/> </choice> </element> |