Osier Yang (7):
util: Fix regression of wwn reading
util: Fix regression introduced by commit 4360a098441
util: Don't miss the slash in constructed path
util: Change virIsCapable* to return bool
util: Update the comment for virGetFCHostNameByWWN
util: Honor the passed sysfs_prefix
tests: Add tests for fc_host
src/node_device/node_device_linux_sysfs.c | 4 +-
src/util/virutil.c | 47 +++---
src/util/virutil.h | 4 +-
tests/Makefile.am | 5 +
tests/fchostdata/fc_host/host4/fabric_name | 1 +
tests/fchostdata/fc_host/host4/max_npiv_vports | 1 +
tests/fchostdata/fc_host/host4/node_name | 1 +
tests/fchostdata/fc_host/host4/npiv_vports_inuse | 1 +
tests/fchostdata/fc_host/host4/port_name | 1 +
tests/fchostdata/fc_host/host4/port_state | 1 +
tests/fchostdata/fc_host/host4/vport_create | 0
tests/fchostdata/fc_host/host4/vport_delete | 0
tests/fchostdata/fc_host/host5/fabric_name | 1 +
tests/fchostdata/fc_host/host5/max_npiv_vports | 1 +
tests/fchostdata/fc_host/host5/node_name | 1 +
tests/fchostdata/fc_host/host5/npiv_vports_inuse | 1 +
tests/fchostdata/fc_host/host5/port_name | 1 +
tests/fchostdata/fc_host/host5/port_state | 1 +
tests/fchostdata/fc_host/host5/vport_create | 0
tests/fchostdata/fc_host/host5/vport_delete | 0
tests/fchosttest.c | 175 +++++++++++++++++++++++
21 files changed, 220 insertions(+), 27 deletions(-)
create mode 100644 tests/fchostdata/fc_host/host4/fabric_name
create mode 100644 tests/fchostdata/fc_host/host4/max_npiv_vports
create mode 100644 tests/fchostdata/fc_host/host4/node_name
create mode 100644 tests/fchostdata/fc_host/host4/npiv_vports_inuse
create mode 100644 tests/fchostdata/fc_host/host4/port_name
create mode 100644 tests/fchostdata/fc_host/host4/port_state
create mode 100644 tests/fchostdata/fc_host/host4/vport_create
create mode 100644 tests/fchostdata/fc_host/host4/vport_delete
create mode 100644 tests/fchostdata/fc_host/host5/fabric_name
create mode 100644 tests/fchostdata/fc_host/host5/max_npiv_vports
create mode 100644 tests/fchostdata/fc_host/host5/node_name
create mode 100644 tests/fchostdata/fc_host/host5/npiv_vports_inuse
create mode 100644 tests/fchostdata/fc_host/host5/port_name
create mode 100644 tests/fchostdata/fc_host/host5/port_state
create mode 100644 tests/fchostdata/fc_host/host5/vport_create
create mode 100644 tests/fchostdata/fc_host/host5/vport_delete
create mode 100644 tests/fchosttest.c
--
1.8.1.4