<value>ext2</value>
...
</enum>
- <enum name='requiredSourceElements'>
- <value>device</value>
- </enum>
</poolOptions>
<volOptions>
<defaultFormat type='raw'</>
<dd>Lists all the possible <code>poolOptions</code> source
pool format types.
</dd>
- <dt><code>requiredSourceElements</code></dt>
- <dd>Lists all the required <code>poolOptions</code> source
- subelements required for a valid source pool element.
- </dd>
<dt><code>targetFormatType</code></dt>
<dd>Lists all the possible <code>volOptions</code> target volume
format types.
if (!(poolOptions = virStoragePoolOptionsForPoolType(type)))
return -1;
- if (!poolOptions->formatToString && !poolOptions->flags)
+ if (!poolOptions->formatToString)
return 0;
virBufferAddLit(buf, "<poolOptions>\n");
virBufferAddLit(buf, "</enum>\n");
}
- if (poolOptions->flags) {
- virBufferAddLit(buf, "<enum name='requiredSourceElements'>\n");
- virBufferAdjustIndent(buf, 2);
-
- if (poolOptions->flags & VIR_STORAGE_POOL_SOURCE_HOST)
- virBufferAddLit(buf, "<value>host</value>\n");
- if (poolOptions->flags & VIR_STORAGE_POOL_SOURCE_DEVICE)
- virBufferAddLit(buf, "<value>device</value>\n");
- if (poolOptions->flags & VIR_STORAGE_POOL_SOURCE_DIR)
- virBufferAddLit(buf, "<value>dir</value>\n");
- if (poolOptions->flags & VIR_STORAGE_POOL_SOURCE_ADAPTER)
- virBufferAddLit(buf, "<value>adapter</value>\n");
- if (poolOptions->flags & VIR_STORAGE_POOL_SOURCE_NAME)
- virBufferAddLit(buf, "<value>name</value>\n");
- if (poolOptions->flags & VIR_STORAGE_POOL_SOURCE_INITIATOR_IQN)
- virBufferAddLit(buf, "<value>initiator</value>\n");
- if (poolOptions->flags & VIR_STORAGE_POOL_SOURCE_NETWORK)
- virBufferAddLit(buf, "<value>network</value>\n");
-
- virBufferAdjustIndent(buf, -2);
- virBufferAddLit(buf, "</enum>\n");
- }
-
virBufferAdjustIndent(buf, -2);
virBufferAddLit(buf, "</poolOptions>\n");
return 0;
<value>xfs</value>
<value>ocfs2</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>device</value>
- </enum>
</poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<value>glusterfs</value>
<value>cifs</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>dir</value>
- </enum>
</poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<value>unknown</value>
<value>lvm2</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>device</value>
- <value>name</value>
- </enum>
</poolOptions>
</pool>
<pool type='disk' supported='no'>
<value>sun</value>
<value>lvm2</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>device</value>
- </enum>
</poolOptions>
<volOptions>
<defaultFormat type='none'/>
</volOptions>
</pool>
<pool type='iscsi' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>device</value>
- <value>initiator</value>
- </enum>
- </poolOptions>
</pool>
<pool type='iscsi-direct' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>device</value>
- <value>initiator</value>
- <value>network</value>
- </enum>
- </poolOptions>
</pool>
<pool type='scsi' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>adapter</value>
- </enum>
- </poolOptions>
</pool>
<pool type='mpath' supported='no'>
</pool>
<pool type='rbd' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>name</value>
- <value>network</value>
- </enum>
- </poolOptions>
</pool>
<pool type='sheepdog' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>name</value>
- <value>network</value>
- </enum>
- </poolOptions>
</pool>
<pool type='gluster' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>dir</value>
- <value>name</value>
- <value>network</value>
- </enum>
- </poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<enum name='targetFormatType'>
</volOptions>
</pool>
<pool type='zfs' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>device</value>
- <value>name</value>
- </enum>
- </poolOptions>
</pool>
<pool type='vstorage' supported='no'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>name</value>
- </enum>
- </poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<enum name='targetFormatType'>
<value>xfs</value>
<value>ocfs2</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>device</value>
- </enum>
</poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<value>glusterfs</value>
<value>cifs</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>dir</value>
- </enum>
</poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<value>unknown</value>
<value>lvm2</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>device</value>
- <value>name</value>
- </enum>
</poolOptions>
</pool>
<pool type='disk' supported='yes'>
<value>sun</value>
<value>lvm2</value>
</enum>
- <enum name='requiredSourceElements'>
- <value>device</value>
- </enum>
</poolOptions>
<volOptions>
<defaultFormat type='none'/>
</volOptions>
</pool>
<pool type='iscsi' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>device</value>
- <value>initiator</value>
- </enum>
- </poolOptions>
</pool>
<pool type='iscsi-direct' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>device</value>
- <value>initiator</value>
- <value>network</value>
- </enum>
- </poolOptions>
</pool>
<pool type='scsi' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>adapter</value>
- </enum>
- </poolOptions>
</pool>
<pool type='mpath' supported='yes'>
</pool>
<pool type='rbd' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>name</value>
- <value>network</value>
- </enum>
- </poolOptions>
</pool>
<pool type='sheepdog' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>name</value>
- <value>network</value>
- </enum>
- </poolOptions>
</pool>
<pool type='gluster' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>host</value>
- <value>dir</value>
- <value>name</value>
- <value>network</value>
- </enum>
- </poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<enum name='targetFormatType'>
</volOptions>
</pool>
<pool type='zfs' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>device</value>
- <value>name</value>
- </enum>
- </poolOptions>
</pool>
<pool type='vstorage' supported='yes'>
- <poolOptions>
- <enum name='requiredSourceElements'>
- <value>name</value>
- </enum>
- </poolOptions>
<volOptions>
<defaultFormat type='raw'/>
<enum name='targetFormatType'>