cciss: add cciss driver sysfs entries
authorAndrew Patterson <andrew.patterson@hp.com>
Tue, 2 Jun 2009 12:48:39 +0000 (14:48 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 2 Jun 2009 12:48:39 +0000 (14:48 +0200)
commit7fe063268e73681cdca1a6496a25f93d3332f517
tree97c9b5f53012908343af83c481c0b8fad888690e
parent88f627ae394eadd75ada669904269f1a4a77b3bd
cciss: add cciss driver sysfs entries

Add sysfs entries to the cciss driver needed for the dm/multipath tools.

A file for vendor, model, rev, and unique_id is added for each logical
drive under directory /sys/bus/pci/devices/<dev>/ccissX/cXdY.  Where X =
the controller (or host) number and Y is the logical drive number.

A link from /sys/bus/pci/devices/<dev>/ccissX/cXdY/block:cciss!cXdY to
/sys/block/cciss!cXdY/device is also created.  A bus is created in
/sys/bus/cciss.  A link is created from the pci ccissX entry to
/sys/bus/cciss/devices/ccissX.  Please consider this for inclusion.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Cc: Stephen M. Cameron <scameron@beardog.cca.cpqcorp.net>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Documentation/ABI/testing/sysfs-bus-pci-devices-cciss [new file with mode: 0644]
drivers/block/cciss.c
drivers/block/cciss.h