]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce virStoragePoolObjSourceMatchTypeDEVICE
authorJohn Ferlan <jferlan@redhat.com>
Wed, 5 Apr 2017 12:54:29 +0000 (08:54 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 13 Apr 2017 14:10:39 +0000 (10:10 -0400)
commitf84b89fb1993cc9709624d0e1b21e5faa8f53b4e
tree02ea8053c98cf189bab30f91915a55645c4bb880
parent2811e29e10325f1133028d494c96bda6d77c1a3f
conf: Introduce virStoragePoolObjSourceMatchTypeDEVICE

Refactor virStoragePoolObjSourceFindDuplicate into smaller units
separated by the "supported" pool source type. The ISCSI, FS,
LOGICAL, DISK, and ZFS pools can use "<source>... <device='%s'/>...
</source>".

Alter the logic slightly to return the matching pool or NULL rather
than setting matchpool = pool and break.  Easier to read that way.
src/conf/virstorageobj.c