From 464d4d28429cf2d9d45bafbe3c424ca136a60e6a Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Fri, 21 Jul 2023 17:49:19 +0200 Subject: [PATCH] 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 4036e80b265d ("lszfcp: add new output marker for non-good FCP devices (hosts)") v2.9.0 commit be7b854969eb ("lszfcp: also mark FCP devices (hosts) that are not available") v2.18.0 commit 45e3f016f4f0 ("lszfcp: add linkdown case to host marker of extended output") Reviewed-by: Benjamin Block Signed-off-by: Steffen Maier Signed-off-by: Steffen Eiden --- zconf/lszfcp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zconf/lszfcp b/zconf/lszfcp index 0dff9246..86b60bf9 100755 --- a/zconf/lszfcp +++ b/zconf/lszfcp @@ -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