summaryrefslogtreecommitdiffstats
path: root/partRequests.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-12-08 19:35:08 +0000
committerChris Lumens <clumens@redhat.com>2005-12-08 19:35:08 +0000
commit85bcf156d463fd2d633a5afb7ebb3fb581b32317 (patch)
tree9db54620785b6a48317f7e9d02ca16441c12dfb6 /partRequests.py
parent02a1766e159b2767f69e0f0a88ab66a5cb2fbfdc (diff)
downloadanaconda-85bcf156d463fd2d633a5afb7ebb3fb581b32317.tar.gz
anaconda-85bcf156d463fd2d633a5afb7ebb3fb581b32317.tar.xz
anaconda-85bcf156d463fd2d633a5afb7ebb3fb581b32317.zip
Support bytesPerInode on RAID (Curtis Doty <Curtis at Greenkey.net, #175288).
Diffstat (limited to 'partRequests.py')
-rw-r--r--partRequests.py10
1 files changed, 6 insertions, 4 deletions
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):