diff options
author | David Cantrell <dcantrell@redhat.com> | 2010-02-19 10:36:49 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2010-02-22 14:02:03 -1000 |
commit | a96e06960fa239ab8bd9a3b10fc05617e8b9beae (patch) | |
tree | 71314b8d720d75edc9daf3ff241bab396c6a24de /isys | |
parent | b648f0b503c9a737b3fa160a5b755a8ec949c303 (diff) | |
download | anaconda-a96e06960fa239ab8bd9a3b10fc05617e8b9beae.tar.gz anaconda-a96e06960fa239ab8bd9a3b10fc05617e8b9beae.tar.xz anaconda-a96e06960fa239ab8bd9a3b10fc05617e8b9beae.zip |
Remove getDasdDevPort() and getDasdState() from isys.py.
These functions are no longer called from anywhere inside anaconda.
Diffstat (limited to 'isys')
-rwxr-xr-x | isys/isys.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/isys/isys.py b/isys/isys.py index 237d3b749..152b7557b 100755 --- a/isys/isys.py +++ b/isys/isys.py @@ -202,49 +202,6 @@ def swapon (path): def loadKeymap(keymap): return _isys.loadKeymap (keymap) -# read /proc/dasd/devices and get a mapping between devs and the dasdnum -def getDasdDevPort(): - ret = {} - f = open("/proc/dasd/devices", "r") - lines = f.readlines() - f.close() - - for line in lines: - index = line.index("(") - dasdnum = line[:index] - - start = line[index:].find("dasd") - end = line[index + start:].find(":") - dev = line[index + start:end + start + index].strip() - - ret[dev] = dasdnum - - return ret - -# get active/ready state of a dasd device -# returns 0 if we're fine, 1 if not -def getDasdState(dev): - devs = getDasdDevPort() - if not devs.has_key(dev): - log.warning("don't have %s in /dev/dasd/devices!" %(dev,)) - return 0 - - f = open("/proc/dasd/devices", "r") - lines = f.readlines() - f.close() - - for line in lines: - if not line.startswith(devs[dev]): - continue - # 2.6 seems to return basic - if line.find(" basic") != -1: - return 1 - # ... and newer 2.6 returns unformatted. consistency! - if line.find(" unformatted") != -1: - return 1 - - return 0 - def resetResolv(): return _isys.resetresolv() |