diff options
author | Karsten Hopp <karsten@redhat.de> | 2001-06-20 21:15:47 +0000 |
---|---|---|
committer | Karsten Hopp <karsten@redhat.de> | 2001-06-20 21:15:47 +0000 |
commit | 2f5300e6a8d41ec45fc38806d61947518ce32663 (patch) | |
tree | 9870381d7ad2ee7f4aafa2a6c2f17969e36e0cf6 /isys/probe.c | |
parent | fa6cb866187230ce67cfa3147392667264c69f27 (diff) | |
download | anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.tar.gz anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.tar.xz anaconda-2f5300e6a8d41ec45fc38806d61947518ce32663.zip |
revert S390 changes
Diffstat (limited to 'isys/probe.c')
-rw-r--r-- | isys/probe.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/isys/probe.c b/isys/probe.c index 800a14ff8..a66956ef6 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -404,46 +404,6 @@ bye: return val; } -int kdFindDasdList(struct knownDevices * devices, int code) { - /* patch for s390 by Oliver Paukstadt <oliver.paukstadt@millenux.com> */ - /* based upon code by Erik Tews <erik.tews@gmx.net> */ - - FILE * fd; - struct kddevice device; - char line[200]; - char name[10]; - char status[10]; - char model[30]; - - if (access("/proc/dasd/devices", R_OK)) return 0; - /* a system without /proc/dasd/devices is nothing to worry about */ - - fd = fopen ("/proc/dasd/devices", "r"); - if (fd == NULL) return 1; - - /* Every line in this file is a harddisk */ - while ((fgets(line, 190, fd)) != NULL) { - - sscanf(line, "%*X %*[(A-Z)] at (%*d:%*d) is %[a-z0-9]:%s ", name, status); - /* Take every dasd, formated and unformated */ - - if (!deviceKnown(devices, name)) { - snprintf(model, sizeof(model), "IBM DASD (%s)", status); - device.class = CLASS_HD; - device.name = strdup(name); - device.model = strdup(model); - device.code = code; - addDevice(devices, device); - } - } - fclose (fd); - - qsort(devices->known, devices->numKnown, sizeof(*devices->known), - sortDevices); - return 0; - -} - struct knownDevices kdInit(void) { struct knownDevices kd; |