]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Add infrastructure to manage XML namespace options
authorJohn Ferlan <jferlan@redhat.com>
Mon, 7 Jan 2019 22:14:57 +0000 (17:14 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 30 Jan 2019 00:16:13 +0000 (19:16 -0500)
commit7a227688a83880200e85dab02420aa94a72a7f9c
tree89af6f3c384a3b9b0f93be62997ce652e74bc2ba
parentfa7a66d079bb614e51fff94ac066ad2c1f22773b
storage: Add infrastructure to manage XML namespace options

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>
docs/formatstorage.html.in
docs/schemas/storagepool.rng
src/storage/storage_backend_fs.c
src/storage/storage_util.c
src/storage/storage_util.h
tests/Makefile.am
tests/storagepoolxml2xmlin/pool-netfs-ns-mountopts.xml [new file with mode: 0644]
tests/storagepoolxml2xmlout/pool-netfs-ns-mountopts.xml [new file with mode: 0644]
tests/storagepoolxml2xmltest.c