lszfcp: add missing fallback marker for non-good fc_host port_state

An online CCW device, which is available and not defunct and not failed,
can have an undesired fc_host port_state, which is not Online and does not
have the special case Linkdown. Indicate such unexpected state.

Complements
v2.9.0 commit 4036e80b26 ("lszfcp: add new output marker for non-good FCP
devices (hosts)")
v2.9.0 commit be7b854969 ("lszfcp: also mark FCP devices (hosts) that are
not available")
v2.18.0 commit 45e3f016f4 ("lszfcp: add linkdown case to host marker of
extended output")

Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Steffen Maier <maier@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Steffen Maier
2023-07-21 17:49:19 +02:00
committed by Steffen Eiden
parent b378ff788e
commit 464d4d2842

View File

@@ -219,6 +219,8 @@ $(readlink -e $HOST_PATH)/-"
HOSTMARKER=" failed"
elif [ "$AVAILABILITY" != "good" ]; then
HOSTMARKER=" NotAvailable"
elif [ "$PORT_STATE" != "Online" ]; then
HOSTMARKER=" NotOnline"
fi
fi
if [ $VERBOSITY -eq 0 ]; then