]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virutil: Provide non-linux impl for virGetFCHostNameByFabricWWN
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Jan 2017 08:13:41 +0000 (09:13 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 9 Jan 2017 08:13:41 +0000 (09:13 +0100)
commit981d979047299e1aea484f5c2a01334a0a9e35d9
treec555625cae95f54569b118fae2ca71502fe3840a
parent96b1f091e7157c9bd4a6fd6f76f5f7ee1d2cbb83
virutil: Provide non-linux impl for virGetFCHostNameByFabricWWN

Currently, there's only linux implementation for
virGetFCHostNameByFabricWWN(). Since the symbol is exported in
our private symbols we ought to have implementation for other
platforms too. This also triggers compilation error on FreeBSD:

../src/.libs/libvirt_driver_storage_impl.a(libvirt_driver_storage_impl_la-storage_backend_scsi.o): In function `createVport':
/usr/home/jenkins/libvirt-master/systems/libvirt-freebsd/build/src/../../src/storage/storage_backend_scsi.c:740: undefined reference to `virGetFCHostNameByFabricWWN'

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virutil.c