public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Drew Winstel <DWinstel@Miltope.com>
Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [Announce] sg3_utils-1.14 available
Date: Sat, 07 May 2005 10:49:52 +1000	[thread overview]
Message-ID: <427C10B0.2000008@torque.net> (raw)
In-Reply-To: <66F9227F7417874C8DB3CEB05772741712AC33@MILEX0.Miltope.local>

Drew Winstel wrote:
> Hello,
> 
> 
>>This version adds sg_rmsn to read media serial number(s).
> 
> 
> It appears that this doesn't quite work as I had hoped.
> 
> Ideally, should it not work upon every drive in which sq_inq reads the serial 
> number?

Drew,
No. sg_rmsn issues a READ MEDIA SERIAL NUMBER SCSI command.
This command (opcode 0xab, service action 1) was added in
SPC-3 revision 11 (12th February 2003) and is not marked as
mandatory. If supported, this command yields a "free format"
media serial number. I have not seen any SCSI device that
supports it (but being in SPC-3 all device types, especially
those with removable media, could support it).

On the other hand the SCSI INQUIRY command is mandatory for
all SCSI devices. Further, recent SPC-3 drafts have made
support for the Device Identification VPD page (0x83)
mandatory. The information in the Device Identification
VPD page is much more structured, supporting multiple
descriptors that indicate _what_ is being identified:
   - target port, or
   - target device, or
   - logical unit
with various types of identifiers supported:
   - EUI-64 based
   - naa
   - SCSI name string (UTF-8 strings used by iSCSI)
   - T10 identifiers
   - vendor

For devices with non removable media, the logical unit
identifier could be viewed as a media serial number.
There seems to be a move away from free format, vendor
specific serial numbers (as provided by the Unit
Serial Number VPD page (0x80)).


Looking for other SCSI command standards that mention
"media serial number" doesn't turn up much. MMC-4
has its "features and profiles", one of which is the
media serial number feature (0x109). These can viewed
with the sg_get_config utility in sg3_utils.

I have updated the sg_rmsn man page to reflect some of
the information above.

Doug Gilbert

  reply	other threads:[~2005-05-07  0:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-06 14:29 [Announce] sg3_utils-1.14 available Drew Winstel
2005-05-07  0:49 ` Douglas Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-09 13:01 Drew Winstel
2005-05-06 13:25 Douglas Gilbert

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=427C10B0.2000008@torque.net \
    --to=dougg@torque.net \
    --cc=DWinstel@Miltope.com \
    --cc=linux-kernel@vger.kernel.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