All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@steeleye.com>
To: dougg@torque.net
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] scsi_status() macro
Date: 15 May 2003 20:11:19 -0500	[thread overview]
Message-ID: <1053047480.3998.120.camel@mulgrave> (raw)
In-Reply-To: <3EC427D5.3060309@torque.net>

If you're doing this:

On Thu, 2003-05-15 at 18:50, Douglas Gilbert wrote:
> +#define scsi_status(result) ((result) & 0x7e)

because bit0 is reserved in SCSI-2, then it should be 0x3e because bits
6 and 7 are also reserved.  Of course, this would clash with the SCSI-3
definition of TASK ABORTED, sigh.

Perhaps it's better just not to bother with the mask?

James



  reply	other threads:[~2003-05-16  0:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-15 23:50 [PATCH] scsi_status() macro Douglas Gilbert
2003-05-16  1:11 ` James Bottomley [this message]
2003-05-16  5:32   ` Douglas Gilbert
  -- strict thread matches above, loose matches on Subject: below --
2003-05-16 12:12 Andries.Brouwer
2003-05-17  4:38 ` Douglas Gilbert
2003-05-17  4:59 Andries.Brouwer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1053047480.3998.120.camel@mulgrave \
    --to=james.bottomley@steeleye.com \
    --cc=dougg@torque.net \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.