]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
conf: Add check for host address type while checking in use
authorJohn Ferlan <jferlan@redhat.com>
Tue, 21 Jul 2015 21:00:00 +0000 (17:00 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 3 Aug 2015 20:48:45 +0000 (16:48 -0400)
commit83f2b62c1f3870e5d5fc547b4f2b02ec2fdd3723
tree6c4b96172556cd2cd149ed828c5d65651a7f7379
parentca2cf74e87c042ba098841b8022237535b9ac9f8
conf: Add check for host address type while checking in use

While searching the hostdevs the drive type can be either *_TYPE_DRIVE
or *_TYPE_NONE.  If the type is _TYPE_NONE on the first scsi_host, then
there is an erroneous "match" that the address already exists.

Although this works by chance currently because hostdev's are added one
at a time and 'nhostdevs' would be zero, thus returning false for the
first hostdev added, a future patch will move the hostdev address
assignment into post processing resulting in the bad match.

This code is only called by path's expecting either drive or none.

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