public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Christoph Hellwig <hch@infradead.org>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>,
	James.Bottomley@SteelEye.com
Subject: Re: [PATCH] sg descriptor sense cleanup lk 2.6.11-rc1-bk1
Date: Fri, 21 Jan 2005 09:35:03 +1000	[thread overview]
Message-ID: <41F04027.9040606@torque.net> (raw)
In-Reply-To: <20050120111526.GD32550@infradead.org>

Christoph Hellwig wrote:
> On Mon, Jan 17, 2005 at 09:39:37PM +1000, Douglas Gilbert wrote:
> 
>>Continuation of descriptor sense data expansion to
>>sg driver.
>>
>>Next will be the sd driver which awaits a
>>new utility function in constants.c to read the
>>sense data information field for medium/hardware
>>errors.
>>
>>Changelog:
>>  - expand sense data handling to descriptor format
>>  - make module parameters visible in
>>      /sys/modules/sg/parameters
>>  - add "readable" SCSI commands: READ(16), REPORT LUNS,
>>    SERVICE_ACTION_IN, RECEIVE_DIAGNOSTIC, READ_LONG
>>    and MAINTENANCE_IN_CMD to list
>>
>>Signed-off-by: Douglas Gilbert <dougg@torque.net>
> 
> 
> +#ifndef MAINTENANCE_IN_CMD
> +#define MAINTENANCE_IN_CMD 0xa3
> +#endif
> 
> Shouldn't we put it into <scsi/scsi.h> ?

Yes it should. For a larger list of missing "byte 0"
opcodes see the top of constants.c

The opcodes with a "in" suffix retrieve data from the
device so are generally safe to use when the device
is opened O_RDONLY.

So the various SCSI command sets are not limited
in number to 256, more use is being made of
service actions. Maintanance In contains these
commands (or at least they are documented separately
in SPC-3):
   Report device identifier [a3/5]
   Report target port groups [a3/a]
   Report aliases [a3/b]
   Report supported operation codes [a3/c]
   Report supported task management functions [a3/d]
   Report priority [a3/e]

And sooner or later we will need to support variable
length commands.

Doug Gilbert


      reply	other threads:[~2005-01-20 23:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-17 11:39 [PATCH] sg descriptor sense cleanup lk 2.6.11-rc1-bk1 Douglas Gilbert
2005-01-20 11:15 ` Christoph Hellwig
2005-01-20 23:35   ` Douglas Gilbert [this message]

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=41F04027.9040606@torque.net \
    --to=dougg@torque.net \
    --cc=James.Bottomley@SteelEye.com \
    --cc=hch@infradead.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox