From a9684b915402f3c84247c39a5b4db0df701dedb2 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Tue, 19 Feb 2019 18:28:15 +0100 Subject: [PATCH] lszfcp: fix error message if no zfcp-attached SCSI device found MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit s390-tools-1.8.1 introduced a new error message. It gave the same and thus misleading error message as if no FCP device (vHBA) found. In order not to break any scripting built around lszfcp output, only print the fixed error message depending on the extended output command line option. Signed-off-by: Steffen Maier Reviewed-by: Jens Remus Signed-off-by: Jan Höppner --- zconf/lszfcp | 6 +++++- zconf/lszfcp.8 | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/zconf/lszfcp b/zconf/lszfcp index d2cd9b6a..99d213e3 100755 --- a/zconf/lszfcp +++ b/zconf/lszfcp @@ -277,7 +277,11 @@ show_devices() fi if [ -z "$SCSI_DEVICE_LIST" ]; then - echo "Error: No fcp devices found." + if $SHOW_EXTENDED; then + echo "Error: No zfcp-attached SCSI devices found." + else + echo "Error: No fcp devices found." + fi fi for SCSI_DEVICE_PATH in $SCSI_DEVICE_LIST; do diff --git a/zconf/lszfcp.8 b/zconf/lszfcp.8 index 15b50ebb..a5653187 100644 --- a/zconf/lszfcp.8 +++ b/zconf/lszfcp.8 @@ -45,6 +45,7 @@ sysfs for the listed object. Option "-e" enables an extended output format. It enumerates all hosts/ports/luns independent of their state. +It also produces some improved error messages. The extended output format can help determining problems. Since a long time, without option "-e", lszfcp has .I