1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 <h1>Storage Pool Capabilities XML format
</h1>
9 <h2><a id=
"Overview">Overview
</a></h2>
11 <p>The Storage Pool Capabilities XML will provide the information
12 to determine what types of Storage Pools exist, whether the pool is
13 supported, and if relevant the source format types, the required
14 source elements, and the target volume format types.
</p>
16 <p>The Storage Pool Capabilities XML provides more information than the
17 <a href=
"/html/libvirt-libvirt-host.html#virConnectGetCapabilities">
18 <code>virConnectGetCapabilities
</code>
20 which only provides an enumerated list of supported pool types.
</p>
22 <h2><a id=
"elements">Element and attribute overview
</a></h2>
24 <p>A query interface was added to the virConnect API's to retrieve the
25 XML listing of the set of Storage Pool Capabilities
26 (
<span class=
"since">Since
5.2.0</span>):
</p>
29 <a href=
"/html/libvirt-libvirt-domain.html#virConnectGetStoragePoolCapabilities">virConnectGetStoragePoolCapabilities
</a>
32 <p>The root element that emulator capability XML document starts with is
33 named
<code>storagepoolCapabilities
</code>. There will be any number of
34 <code>pool
</code> child elements with two attributes
<code>type
</code>
35 and
<code>supported
</code>. Each
<code>pool
</code> element may have
36 a
<code>poolOptions
</code> or
<code>volOptions
</code> subelements to
37 describe the available features. Sample XML output is:
</p>
40 <storagepoolCapabilities
>
41 <pool type='dir' supported='yes'
>
43 <defaultFormat type='raw'
</
>
44 <enum name='targetFormatType'
>
45 <value
>none
</value
>
46 <value
>raw
</value
>
51 <pool type='fs' supported='yes'
>
53 <defaultFormat type='auto'
</
>
54 <enum name='sourceFormatType'
>
55 <value
>auto
</value
>
56 <value
>ext2
</value
>
61 <defaultFormat type='raw'
</
>
62 <enum name='targetFormatType'
>
63 <value
>none
</value
>
64 <value
>raw
</value
>
70 </storagepoolCapabilities
>
73 <p>The following section decribes subelements of the
74 <code>poolOptions
</code> and
<code>volOptions
</code> subelements
</p>:
77 <dt><code>defaultFormat
</code></dt>
78 <dd>For the
<code>poolOptions
</code>, the
<code>type
</code> attribute
79 describes the default format name used for the pool source. For the
80 <code>volOptions
</code>, the
<code>type
</code> attribute describes
81 the default volume name used for each volume.
84 <dt><code>enum
</code></dt>
85 <dd>Each enum uses a name from the list below with any number of
86 <code>value
</code> value subelements describing the valid values.
88 <dt><code>sourceFormatType
</code></dt>
89 <dd>Lists all the possible
<code>poolOptions
</code> source
92 <dt><code>targetFormatType
</code></dt>
93 <dd>Lists all the possible
<code>volOptions
</code> target volume