Commit f01f16c6 authored by Patrick Mansfield's avatar Patrick Mansfield Committed by James Bottomley

[PATCH] add scsi_level to scsi_device sysfs attributes

Hi -

This simple patch adds scsi_level to the scsi_device sysfs attributes,
mainly for use with Doug Gilbert's lsscsi program.
parent 95272556
...@@ -224,6 +224,7 @@ sdev_rd_attr (device_blocked, "%d\n"); ...@@ -224,6 +224,7 @@ sdev_rd_attr (device_blocked, "%d\n");
sdev_rd_attr (current_queue_depth, "%d\n"); sdev_rd_attr (current_queue_depth, "%d\n");
sdev_rd_attr (new_queue_depth, "%d\n"); sdev_rd_attr (new_queue_depth, "%d\n");
sdev_rd_attr (type, "%d\n"); sdev_rd_attr (type, "%d\n");
sdev_rd_attr (scsi_level, "%d\n");
sdev_rd_attr (access_count, "%d\n"); sdev_rd_attr (access_count, "%d\n");
sdev_rd_attr (vendor, "%.8s\n"); sdev_rd_attr (vendor, "%.8s\n");
sdev_rd_attr (model, "%.16s\n"); sdev_rd_attr (model, "%.16s\n");
...@@ -235,6 +236,7 @@ static struct device_attribute * const sdev_attrs[] = { ...@@ -235,6 +236,7 @@ static struct device_attribute * const sdev_attrs[] = {
&dev_attr_current_queue_depth, &dev_attr_current_queue_depth,
&dev_attr_new_queue_depth, &dev_attr_new_queue_depth,
&dev_attr_type, &dev_attr_type,
&dev_attr_scsi_level,
&dev_attr_access_count, &dev_attr_access_count,
&dev_attr_vendor, &dev_attr_vendor,
&dev_attr_model, &dev_attr_model,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment