summaryrefslogtreecommitdiffstats
path: root/isys/devnodes.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-01-24 02:56:02 +0000
committerMatt Wilson <msw@redhat.com>2001-01-24 02:56:02 +0000
commit4b455479e1030fe9c288d55fec691349b956ade8 (patch)
tree31b38e65bc4285a09eb8bd33e77cf1c8c6ab6d4d /isys/devnodes.c
parent41a603ad1682ac504c19d6a3b203ac54d586e5ad (diff)
downloadanaconda-4b455479e1030fe9c288d55fec691349b956ade8.tar.gz
anaconda-4b455479e1030fe9c288d55fec691349b956ade8.tar.xz
anaconda-4b455479e1030fe9c288d55fec691349b956ade8.zip
i2o
Diffstat (limited to 'isys/devnodes.c')
-rw-r--r--isys/devnodes.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/isys/devnodes.c b/isys/devnodes.c
index b37baaee5..c53728365 100644
--- a/isys/devnodes.c
+++ b/isys/devnodes.c
@@ -140,6 +140,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, "i2o/", 4)) {
+ /* I2O Block Device "i2o/hda */
+ type = S_IFBLK;
+ major = 80; /* controller */
+ minor = (devName[6] - 'a')*16;
+ if ((devName[7]) && isdigit(devName[7]))
+ {
+ minor = minor + atoi(devName + 7);
+ }
} else {
for (i = 0; i < numDevices; i++) {
if (!strcmp(devices[i].name, devName)) break;