[master 1/4] Don't adjust actual lv size based on md metadata space requirements.
dwlehman
installerbot-noreply at redhat.com
Wed Jul 29 14:25:52 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/01da4e47ca07c26689405159c51592dd02021a69
More information about the anaconda-patches
mailing list