summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-07 03:38:22 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-07 03:38:22 +0000
commit7c4e4c456505e682cc3f491db26ced0b723bafad (patch)
tree6530198d25e4f983470f792f99830da471df196c /isys/isys.py
parent810ef80041161060dd3b86f60831a880df770832 (diff)
downloadanaconda-7c4e4c456505e682cc3f491db26ced0b723bafad.tar.gz
anaconda-7c4e4c456505e682cc3f491db26ced0b723bafad.tar.xz
anaconda-7c4e4c456505e682cc3f491db26ced0b723bafad.zip
make getting the raid superblock a little more flexible, add a getpagesize function
Diffstat (limited to 'isys/isys.py')
-rw-r--r--isys/isys.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 00dc71cfb..f7a2ef280 100644
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -75,7 +75,10 @@ def raidstart(mdDevice, aMember):
def raidsb(mdDevice):
makeDevInode(mdDevice, "/tmp/md")
- fd = os.open("/tmp/md", os.O_RDONLY)
+ return raidsbFromDevice("/tmp/md")
+
+def raidsbFromDevice(device):
+ fd = os.open(device, os.O_RDONLY)
rc = 0
try:
rc = _isys.getraidsb(fd)
@@ -475,5 +478,8 @@ def ideCdRwList():
return newList
+def getpagesize():
+ return _isys.getpagesize()
+
printObject = _isys.printObject