This patch series replaces all usage of libHBAAPIv2 and libhbalinux2 from fcoe-utils and replaces them with an internal version operating directly on the respective sysfs files.
This removes the two dependencies but pulls in libpciacces (which got pulled in by libhbalinux2 in the current version of fcoe-utils). Nevertheless this way it is possible to get rid of a lot of code. To make things a bit easier to review I've setup a git tree at: https://github.com/morbidrsa/fcoe-utils/tree/drop-libHBAAPI This version also includes the fixes I posted as a reply to v1 and is tested on an Intel NIC as well as 2 different Broadcom/QLogic NICs. Johannes Thumshirn (9): fcoe-utils: Add sysfs_hba to to fcoemon_utils fcoeadm: Use internal sysfs based hba lib for information fcoeadm: Use internal sysfs lib to display target and LUN info fcoeadm: Use internal sysfs lib to display port statistics fcoeadm: Get rid of some includes fcoemon: Use internal sysfs_hba library libutil: remove definition of sa_hex_format() fcping: Convert fcping to internal sysfs based implementation configure.ac: Remove libHBAAPIv2 and libhbalinux2 Makefile.am | 9 +- configure.ac | 8 +- fcoe-utils.spec.in | 2 +- fcoeadm_display.c | 1602 ++++++++++++++--------------------------------- fcoeadm_display.h | 4 +- fcoemon.c | 2 +- fcping.c | 183 ++---- include/fcoemon_utils.h | 3 - include/sysfs_hba.h | 118 ++++ lib/sysfs_hba.c | 605 ++++++++++++++++++ 10 files changed, 1273 insertions(+), 1263 deletions(-) create mode 100644 include/sysfs_hba.h create mode 100644 lib/sysfs_hba.c -- 2.5.0 _______________________________________________ fcoe-devel mailing list [email protected] http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel
