Re: [PATCH] scsi_error: Fix language abuse.

From: Luben Tuikov
Date: Sat Feb 09 2008 - 03:02:50 EST


--- On Fri, 2/8/08, Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:
> The word "illegal" has a precise dictionary
> meaning of "prohibited by
> law". The error messages are therefore incorrect as so
> far nobody has
> made SCSI violations a criminal offence.
>
> This corrects scsi to match various other subsystems
> I've slowly been
> ridding of this.
>
> Pedantically-signed-off-by: Alan Cox
> <alan@xxxxxxxxxx>

Alan,

In standards and in hardware specs, from which the meaning of
"illegal" is borrowed from (into standards), "illegal" doesn't
necessarily mean "invalid", and cannot be substituted for.
This is exactly why this particular word is used in the ASC/ASCQ
assignments. It exposes an underlying behaviour.

For example:

> - {0x2004, "Illegal command while in write capable state"},
> + {0x2004, "Invalid command while in write capable state"},

Consider this: the command itself can be very perfectly "valid",
e.g. the SCB contents, format, etc., but certainly "illegal".

Similarly for the rest of this patch.

Luben

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/