Dump the contents of /dev/bsg to help debug FC passthrough applications like fcping.
Signed-off-by: Robert Love <[email protected]> --- debug/fcoedump.sh | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/debug/fcoedump.sh b/debug/fcoedump.sh index 6f0ce98..5632126 100755 --- a/debug/fcoedump.sh +++ b/debug/fcoedump.sh @@ -116,9 +116,16 @@ fcoe_info() fcoeadm -t } +bsg_info() +{ + echo -e "\n###BSG Info" + echo -e "#find /dev/bsg/" + find /dev/bsg/ 2>&1 +} + sysfs_dump() { - echo -e "###SYSFS dump" + echo -e "\n###SYSFS dump" echo -e "#sysfs fc_host dump" find /sys/class/fc_host/host*/ -type f -print -exec cat '{}' \; echo -e "#sysfs fc_transport dump" @@ -146,6 +153,7 @@ fcoe_debug() adapter_info dcb_info fcoe_info + bsg_info sysfs_dump logfile_dump } _______________________________________________ devel mailing list [email protected] http://www.open-fcoe.org/mailman/listinfo/devel
