mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-05 19:29:33 +00:00
7a227688a8
Introduce the virStoragePoolFSMountOptionsDef to be used to manage the Storage Pool XML Namespace for mount options. Using a new virStorageBackendNamespaceInit function, set the virStoragePoolXMLNamespace into the _virStoragePoolOptions when the storage backend is loaded. Modify the storagepool.rng to allow for the usage of a different XML namespace to parse the fs_mount_opts to be included with the fs and netfs storage pool definitions. Modify the storagepoolxml2xmltest to utilize a properly modified XML file to parse and format the namespace for a netfs storage pool. Signed-off-by: John Ferlan <jferlan@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
26 lines
644 B
XML
26 lines
644 B
XML
<pool type='netfs' xmlns:fs='http://libvirt.org/schemas/storagepool/source/fs/1.0'>
|
|
<name>nfsimages</name>
|
|
<uuid>7641d5a8-af11-f730-a34e-0a7dfcede71f</uuid>
|
|
<capacity>0</capacity>
|
|
<allocation>0</allocation>
|
|
<available>0</available>
|
|
<source>
|
|
<host name='localhost'/>
|
|
<dir path='/var/lib/libvirt/images'/>
|
|
<format type='nfs'/>
|
|
<protocol ver='3'/>
|
|
</source>
|
|
<target>
|
|
<path>/mnt</path>
|
|
<permissions>
|
|
<mode>0700</mode>
|
|
<owner>0</owner>
|
|
<group>0</group>
|
|
</permissions>
|
|
</target>
|
|
<fs:mount_opts>
|
|
<fs:option name='sync'/>
|
|
<fs:option name='lazytime'/>
|
|
</fs:mount_opts>
|
|
</pool>
|