</element>
</define>
- <define name='initiatorinfoiqn'>
- <element name='iqn'>
- <attribute name='name'>
- <text/>
- </attribute>
- <empty/>
+ <define name='initiatorinfo'>
+ <element name='initiator'>
+ <element name='iqn'>
+ <attribute name='name'>
+ <text/>
+ </attribute>
+ <empty/>
+ </element>
</element>
</define>
<ref name='sourceinfohost'/>
<ref name='sourceinfodev'/>
<optional>
- <ref name='initiatorinfoiqn'/>
+ <ref name='initiatorinfo'/>
</optional>
<optional>
<ref name='sourceinfoauth'/>
--- /dev/null
+<pool type='iscsi'>
+ <name>multiiqn</name>
+ <uuid>e9392370-2917-565e-792c-e057f46512d7</uuid>
+ <capacity>0</capacity>
+ <allocation>0</allocation>
+ <available>0</available>
+ <source>
+ <host name='iscsi.example.com'/>
+ <device path='demo-target'/>
+ <initiator>
+ <iqn name='initiator0'/>
+ </initiator>
+ </source>
+ <target>
+ <path>/dev/disk/by-path</path>
+ <permissions>
+ <mode>0700</mode>
+ <owner>0</owner>
+ <group>0</group>
+ </permissions>
+ </target>
+</pool>
--- /dev/null
+<pool type='iscsi'>
+ <name>multiiqn</name>
+ <uuid>e9392370-2917-565e-792c-e057f46512d7</uuid>
+ <capacity>0</capacity>
+ <allocation>0</allocation>
+ <available>0</available>
+ <source>
+ <host name='iscsi.example.com'/>
+ <device path='demo-target'/>
+ <initiator>
+ <iqn name='initiator0'/>
+ </initiator>
+ </source>
+ <target>
+ <path>/dev/disk/by-path</path>
+ <permissions>
+ <mode>0700</mode>
+ <owner>0</owner>
+ <group>0</group>
+ </permissions>
+ </target>
+</pool>
DO_TEST("pool-netfs");
DO_TEST("pool-scsi");
DO_TEST("pool-mpath");
+ DO_TEST("pool-iscsi-multiiqn");
return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
}