summaryrefslogtreecommitdiffstats
path: root/isys/devnodes.c
diff options
context:
space:
mode:
authorlaroche <laroche>2001-07-20 08:08:06 +0000
committerlaroche <laroche>2001-07-20 08:08:06 +0000
commit28a046bd21960576b3c1628b75e6f19a4e039046 (patch)
treec28c206e6e6a726761093b4181302d59cb2a48e0 /isys/devnodes.c
parentb28e0fc487e766dd9e236f7660c02210c7d6c616 (diff)
downloadanaconda-28a046bd21960576b3c1628b75e6f19a4e039046.tar.gz
anaconda-28a046bd21960576b3c1628b75e6f19a4e039046.tar.xz
anaconda-28a046bd21960576b3c1628b75e6f19a4e039046.zip
add s390/s390x patches
Diffstat (limited to 'isys/devnodes.c')
-rw-r--r--isys/devnodes.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/isys/devnodes.c b/isys/devnodes.c
index 4e72d3b25..a04e5e2b2 100644
--- a/isys/devnodes.c
+++ b/isys/devnodes.c
@@ -162,6 +162,20 @@ int devMakeInode(char * devName, char * path) {
minor = 1;
if (devName[3])
minor += devName[3] - '1';
+#if defined (__s390__) || defined (__s390x__)
+ } else if (!strncmp(devName, "dasd", 4)) {
+ /* IBM Dasd Drives */
+ type = S_IFBLK;
+ major = 94;
+ minor = ( devName[4] - 'a' ) * 4;
+ if (devName[5])
+ minor += devName[5] - '0';
+ } else if (!strncmp(devName, "mnd", 4)) {
+ /* IBM MiniDisk Drives */
+ type = S_IFBLK;
+ major = 95;
+ minor = devName[3] - 'a';
+#endif
} else if (!strncmp(devName, "rd/", 3)) {
/* dac 960 "/rd/c0d0{p1}" */
int c, d, p;