summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-06-25 04:46:33 +0000
committerJeremy Katz <katzj@redhat.com>2004-06-25 04:46:33 +0000
commitcb9cf13f26f4589ea0ced7d9995ba331bfba4121 (patch)
tree64da7b5f931cef35182553e4ae33b630811caefb
parentbe619b6b390580b66faaed3c13ac28df0e591ec2 (diff)
downloadanaconda-cb9cf13f26f4589ea0ced7d9995ba331bfba4121.tar.gz
anaconda-cb9cf13f26f4589ea0ced7d9995ba331bfba4121.tar.xz
anaconda-cb9cf13f26f4589ea0ced7d9995ba331bfba4121.zip
add sx8 stuff here too
-rw-r--r--isys/devnodes.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/isys/devnodes.c b/isys/devnodes.c
index 8b98e9c9a..860af3d5b 100644
--- a/isys/devnodes.c
+++ b/isys/devnodes.c
@@ -220,6 +220,15 @@ int devMakeInode(char * devName, char * path) {
minor = (devName[9] - '0') * 16; /* disk */
if (strlen(devName) > 10) /* partition */
minor += atoi(devName + 11);
+ } else if (!strncmp(devName, "sx8/", 4)) {
+ /* Promise SX8 "sx8/0{p1} */
+ int d, p;
+ d = p = 0;
+ sscanf(devName + 4, "%dp%d", &d, &p);
+ type = S_IFBLK;
+ major = 160 + (d/8); /* controller */
+ minor = (d % 8) * 32; /* disk */
+ minor += p; /* partition */
} else if (!strncmp(devName, "i2o/", 4)) {
/* I2O Block Device "i2o/hda */
type = S_IFBLK;