public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* lsscsi-0.07 + scsi host information?
@ 2003-02-13 22:43 Douglas Gilbert
  2003-02-14 16:49 ` Patrick Mansfield
  0 siblings, 1 reply; 2+ messages in thread
From: Douglas Gilbert @ 2003-02-13 22:43 UTC (permalink / raw)
  To: linux-scsi

lsscsi is a utility the uses sysfs in kernels >= lk 2.5.50
to list information about all SCSI devices (including devices
that use the SCSI stack such as USB mass storage devices).
Both a compact format (default), one line per device, and
a "classic" format (like the output of 'cat /proc/scsi/scsi')
are supported.

Version 0.07 is available at
http://www.torque.net/scsi/lsscsi.html

In lk 2.5.60 the prefix to the "queue_depth" sysfs name
was removed.



I would like lsscsi to list SCSI hosts (portals?) but there
doesn't seem to be enough normalized sysfs information
available to do that. Is the "/sys/class/scsi-host" sub-tree
the place to be looking? Of the scsi hosts I have, only
scsi_debug (thanks to work by Mike Anderson) puts an
entry in that sub-tree. I would also like to have normalized
information from the scsi_host structure available (similar
to what Patrick Mansfield provided for scsi devices).


Doug Gilbert


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: lsscsi-0.07 + scsi host information?
  2003-02-13 22:43 lsscsi-0.07 + scsi host information? Douglas Gilbert
@ 2003-02-14 16:49 ` Patrick Mansfield
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Mansfield @ 2003-02-14 16:49 UTC (permalink / raw)
  To: Douglas Gilbert; +Cc: linux-scsi

On Fri, Feb 14, 2003 at 09:43:58AM +1100, Douglas Gilbert wrote:

> I would like lsscsi to list SCSI hosts (portals?) but there
> doesn't seem to be enough normalized sysfs information
> available to do that. Is the "/sys/class/scsi-host" sub-tree
> the place to be looking? Of the scsi hosts I have, only
> scsi_debug (thanks to work by Mike Anderson) puts an
> entry in that sub-tree. I would also like to have normalized
> information from the scsi_host structure available (similar
> to what Patrick Mansfield provided for scsi devices).

We could add scsi_host attributes under the same place as the
scsi_host->host_gendev. But with sysfs, you could not tell if they were
pci or scsi_host attributes.

We also need a place in sysfs for scsi core attributes - like
max_scsi_luns, scsi_logging_level, max_scsi_report_luns, and maybe others,
so they can be set and checked via /sysfs. But drivers under sysfs must
(AFAIK) be on a "bus" and bind to devices on that same bus. For scsi core,
we are more like a library, and do not have a specific type and set of
devices to bind to.

-- Patrick Mansfield

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-14 16:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-13 22:43 lsscsi-0.07 + scsi host information? Douglas Gilbert
2003-02-14 16:49 ` Patrick Mansfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox