summaryrefslogtreecommitdiffstats
path: root/partitions.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 /partitions.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 'partitions.py')
-rw-r--r--partitions.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/partitions.py b/partitions.py
index 335122a95..f02678f20 100644
--- a/partitions.py
+++ b/partitions.py
@@ -146,6 +146,11 @@ class Partitions:
(theDev, devices, level, numActive) = raidDev
level = "RAID%s" %(level,)
+ try:
+ chunk = isys.getRaidChunkFromDevice(theDev)
+ except Exception, e:
+ log("couldn't get chunksize of %s: %s" %(theDev, e))
+ chunk = None
# is minor always mdN ?
minor = int(theDev[2:])
@@ -180,7 +185,8 @@ class Partitions:
raidminor = minor,
raidspares = spares,
mountpoint = mnt,
- preexist = 1)
+ preexist = 1,
+ chunksize = chunk)
spec.size = spec.getActualSize(self, diskset)
self.addRequest(spec)