summaryrefslogtreecommitdiffstats
path: root/partRequests.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-10-16 23:38:19 +0000
committerJeremy Katz <katzj@redhat.com>2003-10-16 23:38:19 +0000
commit86e86f87a2bd23851019d21a982925776da2409b (patch)
treeb21c8266a1ecb1406556adfe8f5acc76bd50f74b /partRequests.py
parent04a378fbc46ece5c4f87c07b06f02f4ec34f1cd2 (diff)
downloadanaconda-86e86f87a2bd23851019d21a982925776da2409b.tar.gz
anaconda-86e86f87a2bd23851019d21a982925776da2409b.tar.xz
anaconda-86e86f87a2bd23851019d21a982925776da2409b.zip
read the chunk size of preexisting raid devices and reuse it (#101518)
Diffstat (limited to 'partRequests.py')
-rw-r--r--partRequests.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/partRequests.py b/partRequests.py
index 3f4e17ce0..d698968d5 100644
--- a/partRequests.py
+++ b/partRequests.py
@@ -541,13 +541,14 @@ class RaidRequestSpec(RequestSpec):
def __init__(self, fstype, format = None, mountpoint = None,
raidlevel = None, raidmembers = None,
raidspares = None, raidminor = None,
- preexist = 0):
+ preexist = 0, chunksize = None):
"""Create a new RaidRequestSpec object.
fstype is the fsset filesystem type.
format is whether or not the partition should be formatted.
mountpoint is the mountpoint.
raidlevel is the raidlevel (as 'RAID0', 'RAID1', 'RAID5').
+ chunksize is the chunksize which should be used.
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.
@@ -569,6 +570,7 @@ class RaidRequestSpec(RequestSpec):
self.raidmembers = raidmembers
self.raidspares = raidspares
self.raidminor = raidminor
+ self.chunksize = chunksize
def __str__(self):
if self.fstype:
@@ -602,7 +604,8 @@ class RaidRequestSpec(RequestSpec):
self.dev = fsset.RAIDDevice(int(self.raidlevel[-1:]),
raidmems, minor = self.raidminor,
spares = self.raidspares,
- existing = self.preexist)
+ existing = self.preexist,
+ chunksize = self.chunksize)
return self.dev
def getActualSize(self, partitions, diskset):