mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-06 17:03:49 +00:00
The XML parser sets a default <mode> if none is explicitly passed in. This is then used at pool/vol creation time, and unconditionally reported in the XML. The problem with this approach is that it's impossible for other code to determine if the user explicitly requested a storage mode. There are some cases where we want to make this distinction, but we currently can't. Handle <mode> parsing like we handle <owner>/<group>: if no value is passed in, set it to -1, and adjust the internal consumers to handle it.
18 lines
430 B
XML
18 lines
430 B
XML
<pool type='netfs'>
|
|
<name>netfs-gluster</name>
|
|
<uuid>d5609ced-94b1-489e-b218-eff35c30336a</uuid>
|
|
<capacity unit='bytes'>0</capacity>
|
|
<allocation unit='bytes'>0</allocation>
|
|
<available unit='bytes'>0</available>
|
|
<source>
|
|
<host name='example.com'/>
|
|
<dir path='/volume'/>
|
|
<format type='glusterfs'/>
|
|
</source>
|
|
<target>
|
|
<path>/mnt/gluster</path>
|
|
<permissions>
|
|
</permissions>
|
|
</target>
|
|
</pool>
|