[blivet 7/8] Use mdraid chunk size to set MDRaidArray's value.
mulhern
amulhern at redhat.com
Thu Nov 21 16:59:49 UTC 2013
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devicelibs/mdraid.py | 4 ++--
blivet/devices.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/blivet/devicelibs/mdraid.py b/blivet/devicelibs/mdraid.py
index d41c4a9..4fac7d0 100644
--- a/blivet/devicelibs/mdraid.py
+++ b/blivet/devicelibs/mdraid.py
@@ -34,8 +34,8 @@ import logging
log = logging.getLogger("blivet")
# these defaults were determined empirically
-MD_SUPERBLOCK_SIZE = 2.0 # MB
-MD_CHUNK_SIZE = 0.5 # MB
+MD_SUPERBLOCK_SIZE = 2.0 # MB
+MD_CHUNK_SIZE = 512.0 / 1024.0 # MB
# raidlevels constants
RAID10 = raid.RAID10.number
diff --git a/blivet/devices.py b/blivet/devices.py
index b8503fe..71e98d8 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -2996,7 +2996,7 @@ class MDRaidArrayDevice(StorageDevice):
self._totalDevices = util.numeric_type(totalDevices)
self.memberDevices = util.numeric_type(memberDevices)
- self.chunkSize = 512.0 / 1024.0 # chunk size in MB
+ self.chunkSize = mdraid.MD_CHUNK_SIZE # chunk size in MB
if not self.exists and not isinstance(metadataVersion, str):
self.metadataVersion = "default"
--
1.8.3.1
More information about the anaconda-patches
mailing list