schema: Update storage pool schema.

- mpath pools weren't listed
- scsi pools were missing an adapter section
- iscsi pools were missing an auth section
- Logical pools do not require a source name to be specified
This commit is contained in:
Cole Robinson 2009-10-08 18:06:10 -04:00
parent 36297e1db2
commit be2cd079af

View File

@ -16,6 +16,7 @@
<ref name='pooldisk'/>
<ref name='pooliscsi'/>
<ref name='poolscsi'/>
<ref name='poolmpath'/>
</choice>
</element>
</define>
@ -90,6 +91,18 @@
<ref name='target'/>
</define>
<define name='poolmpath'>
<attribute name='type'>
<value>mpath</value>
</attribute>
<ref name='commonmetadata'/>
<ref name='sizing'/>
<optional>
<ref name='sourcempath'/>
</optional>
<ref name='target'/>
</define>
<define name='commonmetadata'>
<element name='name'>
<ref name='name'/>
@ -212,6 +225,22 @@
</element>
</define>
<define name='sourceinfoauth'>
<element name='auth'>
<attribute name='type'>
<choice>
<value>chap</value>
</choice>
</attribute>
<attribute name='login'>
<text/>
</attribute>
<attribute name='passwd'>
<text/>
</attribute>
</element>
</define>
<define name='sourcefmtfs'>
<optional>
<element name='format'>
@ -309,10 +338,14 @@
<define name='sourcelogical'>
<element name='source'>
<oneOrMore>
<optional>
<ref name='sourceinfoname'/>
</optional>
<optional>
<ref name='sourceinfodev'/>
</optional>
</oneOrMore>
<ref name='sourcefmtlogical'/>
</element>
</define>
@ -328,15 +361,23 @@
<element name='source'>
<ref name='sourceinfohost'/>
<ref name='sourceinfodev'/>
<optional>
<ref name='sourceinfoauth'/>
</optional>
</element>
</define>
<define name='sourcescsi'>
<element name='source'>
<ref name='sourceinfoname'/>
<ref name='sourceinfoadapter'/>
</element>
</define>
<define name='sourcempath'>
<element name='source'>
<empty/>
</element>
</define>
<define name='name'>
<data type='string'>