From: Douglas Gilbert <dougg@torque.net>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Matthew Wilcox <matthew@wil.cx>,
James Smart <James.Smart@Emulex.Com>,
Eddie Williams <Eddie.Williams@steeleye.com>,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] Print SCSI Inquiry data more compactly
Date: Wed, 21 Jun 2006 22:55:19 -0400 [thread overview]
Message-ID: <449A0697.3090702@torque.net> (raw)
In-Reply-To: <4499C9D2.5090103@s5r6.in-berlin.de>
Stefan Richter wrote:
> Matthew Wilcox wrote:
>
>> On Wed, Jun 21, 2006 at 08:04:36PM +0200, Stefan Richter wrote:
>>
>>> What is wrong with the current two-line format?
>>
>>
>> Several things. The way that it's printed means that simultaneous scans
>> lead to the output getting garbled.
>
>
> That's true, but it could be implemented as an atomic operation with
> multiple printks nonetheless. However you are right, layout should not
> be a reason to add locks. Make it one printk, but please keep it
> readable. The inquiry printout is one of the few that people actually
> care for.
>
>> You're exaggerating.
>
>
> On purpose. :-)
>
>> BTW, here's what a line would look like from sbp2 ...
>>
>> scsi 9:0:0:0: CD-ROM MATSHITA UJDA730 DVD/CDRW 1.00 Level: 0
>
>
> Here is another SBP-2 device:
> Vendor: ST340083 Model: 2A Rev: 3.01
> Type: Direct-Access-RBC ANSI SCSI revision: 04
>
> This may be misleading if "Vendor:" and "Model:" prefixes are stripped.
>
>> btw, I've always found that "CD-ROM" a little confusing; considering
>> that SPC4 says "CD/DVD device", any objections to changing that string
>> to say "CD/DVD" instead of "CD-ROM"?
>
>
> Seems reasonable.
Matthew,
Here are short and long lists that I dug up from
sg3_utils and lsscsi. The long list should adhere
to the SPC-4 pdt names more closely:
static const char * scsi_pdt_strs[] = {
/* 0 */ "disk",
"tape",
"printer",
"processor", /* often SAF-TE (seldom scanner) device */
"write once optical disk",
/* 5 */ "cd/dvd",
"scanner",
"optical memory device",
"medium changer",
"communications",
/* 0xa */ "graphics [0xa]",
"graphics [0xb]",
"storage array controller",
"enclosure services device",
"simplified direct access device",
"optical card reader/writer device",
/* 0x10 */ "bridge controller commands",
"object based storage",
"automation/driver interface",
"0x13", "0x14", "0x15", "0x16", "0x17", "0x18",
"0x19", "0x1a", "0x1b", "0x1c", "0x1d",
"well known logical unit",
"no physical device on this lu",
};
static const char * scsi_short_device_types[] =
{
"disk ", "tape ", "printer", "process", "worm ", "cd/dvd ",
"scanner", "optical", "mediumx", "comms ", "(0xa) ", "(0xb) ",
"storage", "enclosu", "sim dsk", "opti rd", "bridge ", "osd ",
"adi ", "(0x13) ", "(0x14) ", "(0x15) ", "(0x16) ", "(0x17) ",
"(0x18) ", "(0x19) ", "(0x1a) ", "(0x1b) ", "(0x1c) ", "(0x1e) ",
"wlun ", "no dev ",
};
There are no known unknowns ...
Doug Gilbert
next prev parent reply other threads:[~2006-06-22 2:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-21 15:42 [PATCH] Print SCSI Inquiry data more compactly Salyzyn, Mark
2006-06-21 16:41 ` Philip R. Auld
2006-06-21 16:50 ` Matthew Wilcox
2006-06-21 17:02 ` Eddie Williams
2006-06-21 17:18 ` James Smart
2006-06-21 17:33 ` Matthew Wilcox
2006-06-21 18:04 ` Stefan Richter
2006-06-21 19:03 ` Matthew Wilcox
2006-06-21 22:36 ` Stefan Richter
2006-06-22 2:55 ` Douglas Gilbert [this message]
2006-06-21 17:47 ` Philip R. Auld
2006-06-21 22:14 ` Stefan Richter
2006-06-21 22:23 ` Matthew Wilcox
-- strict thread matches above, loose matches on Subject: below --
2006-06-20 22:27 Matthew Wilcox
2006-06-21 14:50 ` Douglas Gilbert
2006-06-21 15:47 ` Matthew Wilcox
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=449A0697.3090702@torque.net \
--to=dougg@torque.net \
--cc=Eddie.Williams@steeleye.com \
--cc=James.Smart@Emulex.Com \
--cc=linux-scsi@vger.kernel.org \
--cc=matthew@wil.cx \
--cc=stefanr@s5r6.in-berlin.de \
/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.