]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
storage: Refactor iSCSI Source matching
authorJohn Ferlan <jferlan@redhat.com>
Mon, 30 Mar 2015 23:59:26 +0000 (19:59 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 15 Apr 2015 10:40:01 +0000 (06:40 -0400)
commitfc20b412719f1591a495b6d368924c8b3fb5b863
treee8ebfa0a559580db0a45b4d1dc9c8788414d1bb4
parent4864e377c9a6ef08cd65672775e520751a27f6d7
storage: Refactor iSCSI Source matching

Create a separate iSCSI Source matching subroutine. Makes the calling
code a bit cleaner as well as sets up for future patches which need to
do better source hosts[0].name processing/checking.

As part of the effort the logic will be inverted from a multi-level
if statement to a series of single level checks for better readability
and further separation

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/conf/storage_conf.c