diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-12-27 05:16:57 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-12-27 05:16:57 +0000 |
commit | 345813c57c3fd10b66b10a1b544f7bd0f3950a7a (patch) | |
tree | 30623a2937aeacb2fc8026ce206c053e375249a9 /fsset.py | |
parent | 26223b23aeb01e4b428c12fa5881280a21eaaec0 (diff) | |
download | anaconda-345813c57c3fd10b66b10a1b544f7bd0f3950a7a.tar.gz anaconda-345813c57c3fd10b66b10a1b544f7bd0f3950a7a.tar.xz anaconda-345813c57c3fd10b66b10a1b544f7bd0f3950a7a.zip |
whee! merge the first bunch of changes from the 390 branch. this
incorporates most of the python changes as well as the isys changes.
email with what hasn't been applied coming later after I either finish merging
the rest or decide to stop for the night
Diffstat (limited to 'fsset.py')
-rw-r--r-- | fsset.py | 28 |
1 files changed, 18 insertions, 10 deletions
@@ -35,7 +35,11 @@ else: fileSystemTypes = {} -availRaidLevels = ['RAID0', 'RAID1', 'RAID5'] +# XXX define availraidlevels and defaultmntpts as arch characteristics +if (iutil.getArch() != "s390" and iutil.getArch() != "s390x"): + availRaidLevels = ['RAID0', 'RAID1', 'RAID5'] +else: + availRaidLevels = ['RAID0', 'RAID5'] def fileSystemTypeGetDefault(): if fileSystemTypeGet('ext3').isSupported(): @@ -1545,18 +1549,22 @@ def ext2FormatFilesystem(argList, messageFile, windowCreator, mntpoint): except: pass else: - if num: + if num and len(num): l = string.split(num, '/') - val = (int(l[0]) * 100) / int(l[1]) - w and w.set(val) - # sync every 10% - if sync + 10 < val: - isys.sync() - sync = val + try: + val = (int(l[0]) * 100) / int(l[1]) + except IndexError, TypeError: + pass + else: + w and w.set(val) + # sync every 10% + if sync + 10 < val: + isys.sync() + sync = val num = '' except OSError, args: - (num, str) = args - if (num != 4): + (errno, str) = args + if (errno != 4): raise IOError, args try: |