Re: [PATCH] multipath-tools: align ALUA state strings with kernel scsi_sysfs

Martin Wilck <[email protected]>
Newsgroups dev.linux.lists.dm-devel
Message-ID <[email protected]>
On Sun, 2026-05-31 at 12:38 +0200, Xose Vazquez Perez wrote:
> Update ALUA asymmetric access state descriptions in the prioritizer
> to
> match the shorter names defined in the SCSI kernel subsystem:
> 
>    $ grep  "{ SCSI_ACCESS_STATE_"  linux/drivers/scsi/scsi_sysfs.c 
>         { SCSI_ACCESS_STATE_OPTIMAL, "active/optimized" },
>         { SCSI_ACCESS_STATE_ACTIVE, "active/non-optimized" },
>         { SCSI_ACCESS_STATE_STANDBY, "standby" },
>         { SCSI_ACCESS_STATE_UNAVAILABLE, "unavailable" },
>         { SCSI_ACCESS_STATE_LBA, "lba-dependent" },
>         { SCSI_ACCESS_STATE_OFFLINE, "offline" },
>         { SCSI_ACCESS_STATE_TRANSITIONING, "transitioning" },
> 
> This unifies diagnostic strings across the stack and replaces the
> misleading
> "ARRAY BUG: invalid TPGs state!" message with the standard SPC
> "reserved"
> designation. These codes are explicitly reserved for future standard
> definitions rather than being treated as malformed states.
> 
> Cc: Martin Wilck <[email protected]>
> Cc: Benjamin Marzinski <[email protected]>
> Cc: Christophe Varoqui <[email protected]>
> Cc: DM_DEVEL-ML <[email protected]>
> Signed-off-by: Xose Vazquez Perez <[email protected]>

Reviewed-by: Martin Wilck <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.