diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | docs/kickstart-docs.txt | 6 | ||||
-rw-r--r-- | partRequests.py | 10 |
3 files changed, 15 insertions, 4 deletions
@@ -1,5 +1,8 @@ 2005-12-08 Chris Lumens <clumens@redhat.com> + * partRequests.py: Support bytesPerInode on RAID + (Curtis Doty <Curtis at Greenkey.net, #175288). + * iw/GroupSelector.py (GroupSelector.__setGroupDescription): Typos. * iw/confirm_gui.py, iw/upgrade_swap_gui.py, iw/zipl_gui.py: queryUpgradeContinue has moved. diff --git a/docs/kickstart-docs.txt b/docs/kickstart-docs.txt index 422066bbd..38e0e5838 100644 --- a/docs/kickstart-docs.txt +++ b/docs/kickstart-docs.txt @@ -969,6 +969,12 @@ Creating the Kickstart File Name of the RAID device to use (such as md0 or md1). RAID devices range from md0 to md7, and each may only be used once. + --bytes-per-inode= + + Specifies the size of inodes on the filesystem to be made on + the RAID device. Not all filesystems support this option, so it + is silently ignored for those cases. + --spares= Specifies the number of spare drives allocated for the RAID diff --git a/partRequests.py b/partRequests.py index cd15686f5..b5930c03b 100644 --- a/partRequests.py +++ b/partRequests.py @@ -562,7 +562,7 @@ class RaidRequestSpec(RequestSpec): def __init__(self, fstype, format = None, mountpoint = None, raidlevel = None, raidmembers = None, raidspares = None, raidminor = None, - preexist = 0, chunksize = None): + preexist = 0, chunksize = None, bytesPerInode=4096): """Create a new RaidRequestSpec object. fstype is the fsset filesystem type. @@ -573,6 +573,7 @@ class RaidRequestSpec(RequestSpec): raidmembers is list of ids corresponding to the members of the RAID. raidspares is the number of spares to setup. raidminor is the minor of the device which should be used. + bytesPerInode is the size of the inodes on the filesystem. """ # if it's preexisting, the original fstype should be set @@ -583,7 +584,7 @@ class RaidRequestSpec(RequestSpec): RequestSpec.__init__(self, fstype = fstype, format = format, mountpoint = mountpoint, preexist = preexist, - origfstype = origfs) + origfstype = origfs, bytesPerInode=bytesPerInode) self.type = REQUEST_RAID @@ -606,11 +607,12 @@ class RaidRequestSpec(RequestSpec): str = ("RAID Request -- mountpoint: %(mount)s uniqueID: %(id)s\n" " type: %(fstype)s format: %(format)s badblocks: %(bb)s\n" " raidlevel: %(level)s raidspares: %(spares)s\n" - " raidmembers: %(members)s" % + " raidmembers: %(members)s bytesPerInode: %(bytesPerInode)s" % {"mount": self.mountpoint, "id": self.uniqueID, "fstype": fsname, "format": self.format, "bb": self.badblocks, "level": self.raidlevel, "spares": self.raidspares, - "members": self.raidmembers}) + "members": self.raidmembers, + "bytesPerInode": self.bytesPerInode}) return str def getDevice(self, partitions): |