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

In the effort to reduce the virStoragePoolObjSourceFindDuplicate logic,
create a new helper which will handle all the ISCSI type differences.

Alter things just a little bit to return NULL or pool rather than
using breaks and matchpool = pool, then break. Also rather than creating
variables withing the if...else if... conditions, have them all at the
top of the function to make things a bit easier to read.
src/conf/virstorageobj.c