]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit005c86fcc0ccbebb7857014f7659c0fd85657d14
tree97c9b5f53012908343af83c481c0b8fad888690e
parentee15d04d19939e863931009d34af7c3fe62b9437
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