[master 2/4] Don't adjust actual lv size based on md metadata space requirements.

dwlehman installerbot-noreply at redhat.com
Tue Jul 28 21:05:35 UTC 2015


From: David Lehman <dlehman at redhat.com>

We adjusted the amount of disk space needed, but we didn't alter the
planned device size.
---
 blivet/devicefactory.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index 2096800..cd87194 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -1306,13 +1306,6 @@ def _get_child_factory_kwargs(self):
 
     def _get_new_device(self, *args, **kwargs):
         """ Create and return the factory device as a StorageDevice. """
-
-        if self.container_raid_level and self.container_size in [SIZE_POLICY_AUTO,
-                                                                 SIZE_POLICY_MAX]:
-            # container pushed to the limit, but we need some extra space for
-            # metadata, so we need to make the LV smaller
-            extra_md_space = lvm.LVM_PE_SIZE * len(self.disks) * 5
-            kwargs["size"] -= extra_md_space
         return self.storage.newLV(*args, **kwargs)
 
     def _set_name(self):


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/547dd7152bdbc4382c92f5253c4d8a6555537654


More information about the anaconda-patches mailing list