summaryrefslogtreecommitdiff
path: root/extras/path_id
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2007-05-25 14:48:08 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-05-25 14:48:08 +0200
commit87cf9f5aacf65d0bc186e5e525026cc760290379 (patch)
treeec2310ba2b3b2d49a55065be217e8c75cc1e86e0 /extras/path_id
parent335b8aace33a2018c947381d32c33bcebe6cbe37 (diff)
cciss device support
Diffstat (limited to 'extras/path_id')
-rw-r--r--extras/path_id/path_id11
1 files changed, 11 insertions, 0 deletions
diff --git a/extras/path_id/path_id b/extras/path_id/path_id
index a7d650bf42..ee26dc1f8a 100644
--- a/extras/path_id/path_id
+++ b/extras/path_id/path_id
@@ -74,6 +74,17 @@ handle_pci () {
DEV=${PWD}
pci_id=${DEV##*/}
host_dev_path=$DEV
+
+ # cciss devices don't have a separate sysfs node
+ for blk_link in block*; do
+ if [ -L "$blk_link" ]; then
+ case "$blk_link" in
+ *cciss*)
+ d=cciss-${blk_link#*cciss\!}
+ ;;
+ esac
+ fi
+ done
while [ ! -z "$host_dev_path" ] ; do
case "$host_dev_path" in
*/pci[0-9]*)