From: Douglas Gilbert <dougg@torque.net>
To: Pat LaVarre <p.lavarre@ieee.org>
Cc: linux-scsi@vger.kernel.org
Subject: Re: sg_scan -i /dev/sg[0123] /dev/hd[abcd] /dev/scd[0123]
Date: Mon, 08 Dec 2003 18:11:21 +1000 [thread overview]
Message-ID: <3FD43229.7070708@torque.net> (raw)
In-Reply-To: <1070670440.3056.7.camel@patibmrh9>
Pat LaVarre wrote:
> Doug G:
>
> In lk 2.6 I wish sg_scan accepted a list of args e.g.
>
> $ lsmod | grep sg
> $
> $ sudo sg_scan -i /dev/sg[0123] /dev/hd[abcd] /dev/scd[0123]
> /dev/hdd: scsi0 channel=0 id=0 lun=0 [em] type=5
> Iomega RRD 05.A [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]
> /dev/scd0: scsi0 channel=0 id=0 lun=0 [em] type=5
> Iomega RRD 05.U [wide=0 sync=0 cmdq=0 sftre=0 pq=0x0]
> $
> $ lsmod | grep sg
> $
>
> Tell me you will accept such a patch, and I might not be too lazy to write it.
Pat,
Have a look at the sg3_utils-1.06.tgz beta on www.torque.net/sg
Maybe sg_scan should renamed sam_scan (sadly apart from INQUIRYs
on st and osst devices).
> P.S. I presume already you are aware of the gcc -Wall warning:
>
> $ cd sg3_utils-1.06/
> $ make
> gcc -g -O2 -Wall -W -D_REENTRANT -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64
> -c -o sg_dd.o sg_dd.c
> sg_dd.c: In function `siginfo_handler':
> sg_dd.c:138: warning: unused parameter `sig'
> ...
Yes, but adding the '-W' flagging has several beneficial
effects (to counterbalance this annoying warning which
C++ but not C addresses).
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).
Doug Gilbert
next prev parent reply other threads:[~2003-12-08 8:11 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 [this message]
2003-12-08 17:39 ` Pat LaVarre
2003-12-08 17:58 ` Pat LaVarre
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=3FD43229.7070708@torque.net \
--to=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
--cc=p.lavarre@ieee.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