public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pat LaVarre <p.lavarre@ieee.org>
To: dougg@torque.net
Cc: linux-scsi@vger.kernel.org
Subject: Re: sg_scan -i /dev/sg[0123] /dev/hd[abcd] /dev/scd[0123]
Date: 08 Dec 2003 10:58:03 -0700	[thread overview]
Message-ID: <1070906283.2263.101.camel@patibmrh9> (raw)
In-Reply-To: <3FD43229.7070708@torque.net>

> > In lk 2.6 I wish sg_scan accepted a list of args e.g.
> > 
> > $ sudo sg_scan -i /dev/sg[0123] /dev/hd[abcd] /dev/scd[0123]

Kindly offline I'm told `man sg_scan` may have changed lately.  I have
sg installed without root privilege, so I have no man, but my sg_scan.8
is readable.

> > From:sg_scan.8

There I see only the -anwix options defined, in particular the
predefined -a and -n device lists.  I see no support for accepting a
list of devices to try from the command line.  I will write a patch and
reply again.

> Have a look at the sg3_utils-1.06.tgz beta on www.torque.net/sg

1.06 of Mon differs from 1.06 of Fri, aye.  My diff -Nurp between those
yields 1432 lines.  I see CHANGELOG mentions: "accept /dev/hd? ATAPI
devices directly in lk 2.6", I thank you!

> Maybe sg_scan should renamed sam_scan (sadly apart from INQUIRYs
> on st and osst devices).

Lost me help?  I'm guessing this English means an "st device" is a PDT
x01 device aggressively supported by CONFIG_CHR_DEV_ST, and we (lk 2.6)
have history that precludes sg_scan from seeing st devices, and osst is
something like st but distinct.

> the gcc ... warning:

Answered separately in this same thread.  Now I see gcc also complains
of sgm_dd.c.

> BTW The sginfo in that beta decodes mode pages for disks,
> tapes, cd/dvds and enclosures (plus SPI-4, FCP and SAS on
> the transport side).

$ sudo ./sginfo -a /dev/hdc | wc -l
    223
$ sudo ./sginfo -a /dev/hdd | wc -l
    117
$

Fun thank you.

Pat LaVarre



  parent reply	other threads:[~2003-12-08 17:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-06  0:27 sg_scan -i /dev/sg[0123] /dev/hd[abcd] /dev/scd[0123] Pat LaVarre
2003-12-08  8:11 ` Douglas Gilbert
2003-12-08 17:39   ` Pat LaVarre
2003-12-08 17:58   ` Pat LaVarre [this message]
2003-12-08 18:29     ` Pat LaVarre
2003-12-11 20:02       ` Pat LaVarre
2003-12-12 13:00         ` Douglas Gilbert
2003-12-14 22:30           ` Pat LaVarre
2003-12-10 18:14     ` Pat LaVarre
2003-12-11  1:07   ` Willem Riede

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=1070906283.2263.101.camel@patibmrh9 \
    --to=p.lavarre@ieee.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox