summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-06-23 15:10:35 +0000
committerChris Lumens <clumens@redhat.com>2005-06-23 15:10:35 +0000
commit95a43db283a2dc62237f8bc9e682fcbf0b824fd5 (patch)
tree800c0230a350f2133a36fe1d99af2b27a6c116be /isys
parentfbb4522e01243dacfa52dd60eb035dcc7ee00690 (diff)
downloadanaconda-95a43db283a2dc62237f8bc9e682fcbf0b824fd5.tar.gz
anaconda-95a43db283a2dc62237f8bc9e682fcbf0b824fd5.tar.xz
anaconda-95a43db283a2dc62237f8bc9e682fcbf0b824fd5.zip
Remove method in addition to calls.
Diffstat (limited to 'isys')
-rw-r--r--isys/isys.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/isys/isys.py b/isys/isys.py
index a4653d5c5..250ec9837 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -663,34 +663,6 @@ def readSwapLabel_int(device):
label = string.rstrip(buf[1052:1068], "\0x00")
return label
-# FIXME: we should probably remove this after a release just to avoid
-# breaking things
-def oldSwapLabelMunge(device):
- label = None
- try:
- fd = os.open(device, os.O_RDWR)
- except:
- return label
-
- pagesize = getpagesize()
- try:
- buf = os.read(fd, pagesize)
- except OSError, e:
- log("error reading swap label on %s: %s" %(device, e))
- try:
- os.close(fd)
- except:
- pass
- return label
-
- if ((len(buf) == pagesize) and (buf[pagesize - 10:] == "SWAPSPACE2")):
- label = string.rstrip(buf[16:31], "\0x00")
- os.lseek(fd, 1052, 0)
- if len(label) > 0:
- os.write(fd, label)
- os.close(fd)
- return label
-
def readSwapLabel(device, makeDevNode = 1):
if makeDevNode:
makeDevInode(device, "/tmp/disk")