提交 8d16201f 编写于 作者: C Christophe Fergeau 提交者: Eric Blake

Add documentation for <disk><source type="dir">

上级 9fdfd8b6
...@@ -1023,21 +1023,24 @@ ...@@ -1023,21 +1023,24 @@
path to the file holding the disk. If the disk path to the file holding the disk. If the disk
<code>type</code> is "block", then the <code>dev</code> <code>type</code> is "block", then the <code>dev</code>
attribute specifies the path to the host device to serve as attribute specifies the path to the host device to serve as
the disk. If the disk <code>type</code> is "network", then the disk. If the disk <code>type</code> is "dir", then the
the <code>protocol</code> attribute specifies the protocol to <code>dir</code> attribute specifies the fully-qualified path
access to the requested image; possible values are "nbd", to the directory to use as the disk. If the disk <code>type</code>
"rbd", and "sheepdog". If the <code>protocol</code> attribute is "network", then the <code>protocol</code> attribute specifies
is "rbd" or "sheepdog", an additional the protocol to access to the requested image; possible values
are "nbd", "rbd", and "sheepdog". If the <code>protocol</code>
attribute is "rbd" or "sheepdog", an additional
attribute <code>name</code> is mandatory to specify which attribute <code>name</code> is mandatory to specify which
image to be used. When the disk <code>type</code> is image to be used. When the disk <code>type</code> is
"network", the <code>source</code> may have zero or "network", the <code>source</code> may have zero or
more <code>host</code> sub-elements used to specify the hosts more <code>host</code> sub-elements used to specify the hosts
to connect. to connect.
<span class="since">Since 0.0.3</span> <span class="since">Since 0.0.3; <code>type='dir'</code> since
For "file" disk type which represents cdrom or floppy 0.7.5; <code>type='network'</code> since 0.8.7</span><br/>
(the <code>device</code> attribute) it is possible to define For a "file" disk type which represents a cdrom or floppy
policy what to do with disk if source is not accessible. (the <code>device</code> attribute), it is possible to define
This is done by <code>startupPolicy</code> attribute accepting policy what to do with the disk if the source file is not accessible.
This is done by the <code>startupPolicy</code> attribute, accepting
these values: these values:
<table class="top_table"> <table class="top_table">
<tr> <tr>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册