summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.de>2000-08-03 19:44:25 +0000
committerKarsten Hopp <karsten@redhat.de>2000-08-03 19:44:25 +0000
commitbc9373698fca9884b2f02f0c2e509e02321b96cd (patch)
treeffcf9c16012f70aa8307001e0ea67941db0c5b5a /isys
parentd1be8db1d206dcfc3575fdcbae2243529a322cfd (diff)
downloadanaconda-bc9373698fca9884b2f02f0c2e509e02321b96cd.tar.gz
anaconda-bc9373698fca9884b2f02f0c2e509e02321b96cd.tar.xz
anaconda-bc9373698fca9884b2f02f0c2e509e02321b96cd.zip
added mknod for SA5300 controllers (/dev/cciss/c0d0p0)
Diffstat (limited to 'isys')
-rw-r--r--isys/devnodes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/isys/devnodes.c b/isys/devnodes.c
index 3ba4f1195..6632de380 100644
--- a/isys/devnodes.c
+++ b/isys/devnodes.c
@@ -133,6 +133,13 @@ int devMakeInode(char * devName, char * path) {
minor = (devName[7] - '0') * 16; /* disk */
if (strlen(devName) > 8) /* partition */
minor += atoi(devName + 9);
+ } else if (!strncmp(devName, "cciss/", 6)) {
+ /* Compaq Smart Array 5300 "cciss/c0d0{p1} */
+ type = S_IFBLK;
+ major = 130 + devName[7] - '0'; /* controller */
+ minor = (devName[9] - '0') * 16; /* disk */
+ if (strlen(devName) > 10) /* partition */
+ minor += atoi(devName + 11);
} else {
for (i = 0; i < numDevices; i++) {
if (!strcmp(devices[i].name, devName)) break;