]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Add helper to get the scsi host name by iterating over sysfs
authorOsier Yang <jyang@redhat.com>
Mon, 25 Mar 2013 16:43:40 +0000 (00:43 +0800)
committerOsier Yang <jyang@redhat.com>
Mon, 8 Apr 2013 10:41:06 +0000 (18:41 +0800)
commitb52fbad1504260fe75e2123fbfdea7db6784470b
tree64f0fa81f90507f595f431e4ffab7392bb2b1d4d
parentb78db1c36548d42ae6d792e148e47cf6c0e562ba
util: Add helper to get the scsi host name by iterating over sysfs

The helper iterates over sysfs, to find out the matched scsi host
name by comparing the wwnn,wwpn pair. It will be used by checkPool
and refreshPool of storage scsi backend. New helper getAdapterName
is introduced in storage_backend_scsi.c, which uses the new util
helper virGetFCHostNameByWWN to get the fc_host adapter name.
src/libvirt_private.syms
src/storage/storage_backend_scsi.c
src/util/virutil.c
src/util/virutil.h