On Sat 16 Apr 2005, Eric wrote:
> On Fri, Apr 15, 2005 at 03:13:29PM +0200, Paul Slootman wrote:
> > Package: scsitools
> > Version: 0.8-1
> > Severity: normal
> > 
> > # scsiinfo -l
> > /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh 
> > 
> > [...]
> > 
> > With only 8 disks I can keep track of things without needing a tool.
> > Thus having a tool that can only count up to 8 sucks :-/
> > 
> > Please let it check for more than 8 disks.

> Hello Paul,
>   could you try sginfo from sg3-utils and tell me if it works better for
> you ? scsiinfo is really outdated and not maintained upstream for years
> now.

A strace showed that it checked up to /dev/sdh and the started looking
at /dev/scdX. It seems simple enough to let it check /dev/sd[i-z] as
well (perhaps stop when the /dev/sdX file (not device!) doesn't exist).

Anyway, yes, sginfo shows all the devices:

# sginfo -l
/dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh 
/dev/sdi /dev/sdj /dev/sdk /dev/sdl /dev/sdm /dev/sdn /dev/sdo /dev/sdp

However, for e.g. showing the serial number, sginfo needs the sg module
loaded, whereas scsiinfo doesn't (2.6.11 kernel). So both have their
positive and negative sides...


Paul Slootman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to