Skip to contentSkip to conversation

lsscsi-0.11

DISCUSSION Douglas Gilbert 2 participants 2 messages Jan 9, 2004 SCSI

lore
Share & tools
lore
#0 lore raw

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

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

This version has been reworked for lk 2.6.1-rc1 (and later) since sysfs support for st and sg devices has been (re-)added.

lsscsi does not yet use libsysfs but may well soon. One thing that lsscsi does that is not yet available in libsysfs is to sort (and filter) directory entries. This is most likely not relevant for most libsysfs based applications but is convenient for those applications that display information for human consumption.

Doug Gilbert

#1 lore raw
Quoted 13 lines · Douglas Gilbert

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

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

This version has been reworked for lk 2.6.1-rc1 (and later) since sysfs support for st and sg devices has been (re-)added.

Quoted 6 lines

lsscsi does not yet use libsysfs but may well soon. One thing that lsscsi does that is not yet available in libsysfs is to sort (and filter) directory entries. This is most likely not relevant for most libsysfs based applications but is convenient for those applications that display information for human consumption.

Yep, libsysfs doesn't implement any sorts or filters on any of the lists. It won't be difficult to do, the dlists have what's needed to complete the functionality. And, it would be useful for systool and other applications. We will add the sort and filter functions. If there's anything particular you have in mind, please let us know. There may be a slight delay in getting new changes into our tree, Ananth is traveling to Australia for the Linux conference.

Thanks,

Dan

Quoted 6 lines

Doug Gilbert

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html