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. Changes to v2: o Do not hardcode /sys/class/net/<device>/ctlr_<num>/ to ctlr_0 but read out of sysfs Changes to v3: o Checkpatch clean the patches. o Copy over comments from libhbalinux2/pci.c into sysfs_hba.c pci code. o Move defines to header files. Johannes Thumshirn (9): fcoe-utils: Add sysfs_hba 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/Makefile.am: Remove libHBAAPIv2 and libhbalinux2 Makefile.am | 13 +- 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 | 695 ++++++++++++++++++++ 10 files changed, 1365 insertions(+), 1265 deletions(-) create mode 100644 include/sysfs_hba.h create mode 100644 lib/sysfs_hba.c -- 2.6.0 _______________________________________________ fcoe-devel mailing list [email protected] http://lists.open-fcoe.org/mailman/listinfo/fcoe-devel
