Skip to contentSkip to conversation

scsi: Document generic scsi device attributes

PATCH In review Stephen M. Cameron 3 participants 6 messages Aug 17, 2011 – Aug 18, 2011 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: Document generic scsi device attributes

From: Stephen M. Cameron <[email protected]>

---
 Documentation/ABI/testing/sysfs-class-scsi_devices |  123 ++++++++++++++++++++
 1 files changed, 123 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-scsi_devices
Documentation/ABI/testing/sysfs-class-scsi_devices new file +123 -0
new file mode 100644
index 0000000..ad2d36b
@@ -0,0 +1,123 @@
+What:           /sys/class/scsi_device/..../device/device_blocked
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only integer attribute indicates whether the
+		device is blocked.  A non-zero value indicates the device
+		is blocked, zero indicates the device is not blocked.
+
+What:           /sys/class/scsi_device/..../device/type
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only decimal integer value indicates the
+		SCSI device type.
+
+What:           /sys/class/scsi_device/..../device/scsi_level
+Date:           January, 2003
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only decimal integer value indicates the
+		SCSI revision level the device claims to support.
+
+What:           /sys/class/scsi_device/..../device/vendor
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only string attribute contains the vendor of the SCSI
+		device.
+
+What:           /sys/class/scsi_device/..../device/model
+Date:           December 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only string attribute contains the model of the SCSI
+		device.
+
+What:           /sys/class/scsi_device/..../device/rev
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only string attribute contains the product revision
+		of the SCSI device.
+
+What:           /sys/class/scsi_device/..../device/rescan
+Date:           March, 2003
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+
+What:           /sys/class/scsi_device/..../device/delete
+Date:           August, 2003
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		Writing to this write only attribute causes the SCSI device to
+		be removed from the SCSI midlayer.
+
+What:           /sys/class/scsi_device/..../device/state
+Date:           April, 2004
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read/write string attribute allows setting or retrieving
+		the current state of the SCSI device.  Possible values are
+		"created", "running", "cancel", "deleted", "quiesce", "offline",
+		"blocked" and "created-blocked"
+
+What:           /sys/class/scsi_device/..../device/timeout
+Date:           May, 2004
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read/write decimal integer attribute contains the number
+		of seconds which may elapse after sending a command to the
+		device before that command is considered to have timed out.
+
+What:           /sys/class/scsi_device/..../device/iocounterbits
+Date:           March, 2005
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only integer value shows the number of bits
+		used to represent the various I/O counters.
+
+What:           /sys/class/scsi_device/..../device/iorequest_cnt
+Date:           March, 2005
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only integer value indicates how many I/O requests
+		have been submitted to the SCSI device.
+
+What:           /sys/class/scsi_device/..../device/iodone_cnt
+Date:           March, 2005
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only integer value indicates how many I/O requests
+		have been completed by the SCSI device.
+
+What:           /sys/class/scsi_device/..../device/ioerr_cnt
+Date:           March, 2005
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only integer value indicates how many I/O requests
+		have been completed with errors by the SCSI device.
+
+What:           /sys/class/scsi_device/..../device/modalias
+Date:           April, 2007
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only string value contains a string of the form
+		"scsi:t-0xXX" where "XX" are two hex digits representing the
+		SCSI device type.  See also the "type" attribute.
+
maintainer
#1 lore raw
Quoted 14 lines · Stephen M. Cameron

From: Stephen M. Cameron <[email protected]>

---
 Documentation/ABI/testing/sysfs-class-scsi_devices |  123 ++++++++++++++++++++
 1 files changed, 123 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-scsi_devices
Documentation/ABI/testing/sysfs-class-scsi_devices new file +0 -0
new file mode 100644
index 0000000..ad2d36b

Documentation/ABI/testing/sysfs-class-scsi_devices line 4

Quoted 4 lines
Documentation/ABI/testing/sysfs-class-scsi_devices new file +4 -0
@@ -0,0 +1,123 @@
+What:           /sys/class/scsi_device/..../device/device_blocked
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>

Hmm, so I get fingered for every screw up in our sysfs ABI? nice wide receiver buck pass move.

James

#2 lore raw
Quoted 9 lines · James Bottomley
Quoted 8 lines · Stephen M. Cameron

From: Stephen M. Cameron <[email protected]>

---
 Documentation/ABI/testing/sysfs-class-scsi_devices |  123 ++++++++++++++++++++
 1 files changed, 123 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-scsi_devices
Quoted 13 lines

Documentation/ABI/testing/sysfs-class-scsi_devices line 4

Quoted 10 lines
Documentation/ABI/testing/sysfs-class-scsi_devices new file +4 -0
new file mode 100644
index 0000000..ad2d36b
@@ -0,0 +1,123 @@
+What:           /sys/class/scsi_device/..../device/device_blocked
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>

Hmm, so I get fingered for every screw up in our sysfs ABI? nice wide receiver buck pass move.

Uh, sorry if that wasn't the right thing to do, which it sounds like it wasn't. I just put your name there because you're the SCSI maintainer. I can dig through all the commits and see who added what if that's preferable. Or leave the names out? or something else?

-- steve

maintainer
#3 lore raw
Quoted 24 lines · On Wed, 2011-08-17 at 15:00 -0500, [email protected] wrote:
Quoted 9 lines · James Bottomley
Quoted 8 lines · Stephen M. Cameron

From: Stephen M. Cameron <[email protected]>

---
 Documentation/ABI/testing/sysfs-class-scsi_devices |  123 ++++++++++++++++++++
 1 files changed, 123 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-scsi_devices
Quoted 13 lines

Documentation/ABI/testing/sysfs-class-scsi_devices line 4

Quoted 10 lines
Documentation/ABI/testing/sysfs-class-scsi_devices new file +4 -0
new file mode 100644
index 0000000..ad2d36b
@@ -0,0 +1,123 @@
+What:           /sys/class/scsi_device/..../device/device_blocked
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>

Hmm, so I get fingered for every screw up in our sysfs ABI? nice wide receiver buck pass move.

Quoted 4 lines

Uh, sorry if that wasn't the right thing to do, which it sounds like it wasn't. I just put your name there because you're the SCSI maintainer. I can dig through all the commits and see who added what if that's preferable. Or leave the names out? or something else?

No, don't worry, the patch is the right thing to do ... I was just slightly amused to see my name down for all of it.

James

#4 lore raw
Quoted 13 lines · On Aug 17 James Bottomley wrote:
Quoted 12 lines · On Wed, 2011-08-17 at 15:00 -0500, [email protected] wrote:
Quoted 10 lines · James Bottomley

Documentation/ABI/testing/sysfs-class-scsi_devices line 4

Quoted 6 lines · Stephen M. Cameron

+++ b/Documentation/ABI/testing/sysfs-class-scsi_devices

Documentation/ABI/testing/sysfs-class-scsi_devices new file +4 -0
@@ -0,0 +1,123 @@
+What:           /sys/class/scsi_device/..../device/device_blocked
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>

Hmm, so I get fingered for every screw up in our sysfs ABI? nice wide receiver buck pass move.

Quoted 7 lines
Quoted 4 lines

Uh, sorry if that wasn't the right thing to do, which it sounds like it wasn't. I just put your name there because you're the SCSI maintainer. I can dig through all the commits and see who added what if that's preferable. Or leave the names out? or something else?

No, don't worry, the patch is the right thing to do ... I was just slightly amused to see my name down for all of it.

Isn't [email protected] acceptable if not even preferable as contact?

Signature · 3 lines
Stefan Richter
-=====-==-== =--- =--=-
http://arcgraph.de/sr/
#5 lore raw
In reply to Stephen M. Cameron
Quoted 5 lines · On Aug 17 Stephen M. Cameron wrote:
Documentation/ABI/testing/sysfs-class-scsi_devices new file +5 -0
+What:           /sys/class/scsi_device/..../device/type
+Date:           December, 2002
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:

Documentation/ABI/testing/sysfs-class-scsi_devices line 24

Quoted 10 lines
Documentation/ABI/testing/sysfs-class-scsi_devices new file +10 -0
+		This read only decimal integer value indicates the
+		SCSI device type.
+
+What:           /sys/class/scsi_device/..../device/scsi_level
+Date:           January, 2003
+KernelVersion:  Unknown
+Contact:        James Bottomley <[email protected]>
+Description:
+		This read only decimal integer value indicates the
+		SCSI revision level the device claims to support.

Perhaps a reference to the pertaining SCSI specifications would be good to have at these two attribute descriptions. (I am too lazy to look those up right now though.)

Signature · 3 lines
Stefan Richter
-=====-==-== =--- =--=-
http://arcgraph.de/sr/