diff options
author | Erik Troan <ewt@redhat.com> | 2001-03-09 01:50:48 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-03-09 01:50:48 +0000 |
commit | 84f247e26fedb38682bbaef964d3a43af4a3a8e9 (patch) | |
tree | 07571224940ca11f2448db26746658f2cc86ab68 /isys | |
parent | 83fbe46c42037512a99733f51d10292ca35b9f55 (diff) | |
download | anaconda-84f247e26fedb38682bbaef964d3a43af4a3a8e9.tar.gz anaconda-84f247e26fedb38682bbaef964d3a43af4a3a8e9.tar.xz anaconda-84f247e26fedb38682bbaef964d3a43af4a3a8e9.zip |
1) added pathSpaceAvailable()
2) added readOnly parameter to losetup
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/isys/isys.py b/isys/isys.py index 5834c52a3..364777c28 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -10,6 +10,9 @@ MIN_RAM = _isys.MIN_RAM MIN_GUI_RAM = _isys.MIN_GUI_RAM EARLY_SWAP_RAM = _isys.EARLY_SWAP_RAM +def pathSpaceAvailable(path, fsystem = "ext2"): + return _isys.devSpaceFree(path) + def spaceAvailable(device, fsystem = "ext2"): mount(device, "/mnt/space", fstype = fsystem) space = _isys.devSpaceFree("/mnt/space/.") @@ -42,8 +45,8 @@ def raidsb(mdDevice): os.close(fd) return rc -def losetup(device, file, readonly = 0): - if readonly: +def losetup(device, file, readOnly = 0): + if readOnly: mode = os.O_RDONLY else: mode = os.O_RDWR |