diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-22 18:46:48 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-22 18:46:48 +0000 |
commit | cce09866fd0052e076c43796d620e98dfeb7850c (patch) | |
tree | cc6476d17604c2b82e06d1486a07bcaf832ca664 /todo.py | |
parent | c95c060655f651f8fd698099af39dd8c90ac4446 (diff) | |
download | anaconda-cce09866fd0052e076c43796d620e98dfeb7850c.tar.gz anaconda-cce09866fd0052e076c43796d620e98dfeb7850c.tar.xz anaconda-cce09866fd0052e076c43796d620e98dfeb7850c.zip |
raid options for doug
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -35,9 +35,9 @@ class LogFile: def __call__ (self, format, *args): if args: - self.logFile.write (format % args) + self.logFile.write ("* %s\n" % (format % args)) else: - self.logFile.write (format) + self.logFile.write ("* %s\n" % format) def getFile (self): return self.logFile.fileno () @@ -591,9 +591,24 @@ class ToDo: _("Formatting %s filesystem...") % (mntpoint,)) isys.makeDevInode(device, '/tmp/' + device) if fsystem == "ext2" and createFs: - args = [ "mke2fs", '/tmp/' + device, "-s1" ] + args = [ "mke2fs", '/tmp/' + device, '-b', '4096', '-i', '16384' ] + # set up raid options for md devices. + if device[:2] == 'md': + for (rmnt, rdevice, raidType, makeup) in raid: + if rdevice == device: + rtype = raidType + rdisks = len (makeup) + if rtype == 5: + rdisks = rdisks - 1 + args = args + [ '-R', 'stride=%d' % (rdisks * 16) ] + elif rtype == 0: + args = args + [ '-R', 'stride=%d' % (rdisks * 16) ] + if self.badBlockCheck: args.append ("-c") + + self.log ("running mke2fs on %s with args %s\n", device, repr (args)) + iutil.execWithRedirect ("/usr/sbin/mke2fs", args, stdout = None, stderr = None, |