mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
committed by
Jan Höppner
parent
6d31760872
commit
a9684b9154
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user