]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Introduce virStoragePoolObjSourceMatchTypeDIR
authorJohn Ferlan <jferlan@redhat.com>
Wed, 5 Apr 2017 12:14:49 +0000 (08:14 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 13 Apr 2017 14:10:39 +0000 (10:10 -0400)
commit6ddd6ae8114fdf001f1f93dce05472c1144da604
treec7d000afdd449b43197d8c6f5da50382aadf0297
parentb595cc05e83288b743d48904964e4dcb547a2d26
conf: Introduce virStoragePoolObjSourceMatchTypeDIR

Refactor virStoragePoolObjSourceFindDuplicate into smaller units
separated by the "supported" pool source type. The DIR, GLUSTER,
and NETFS pools all can use "<source>... <dir='%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