lszfcp: fix error message if no zfcp-attached SCSI device found

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 <maier@linux.ibm.com>
Reviewed-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Steffen Maier
2019-02-19 18:28:15 +01:00
committed by Jan Höppner
parent 6d31760872
commit a9684b9154
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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