[node-patches] Change in ovirt-node[master]: include EFI_SIZE in needed size calculation
mburns at redhat.com
mburns at redhat.com
Thu Jan 3 18:26:49 UTC 2013
Michael Burns has uploaded a new change for review.
Change subject: include EFI_SIZE in needed size calculation
......................................................................
include EFI_SIZE in needed size calculation
When calculating the needed size, the EFI_SIZE was not included.
rhbz#868776
Change-Id: Ia2913f5bac68932cecf759184e22cb0e0a090064
Signed-off-by: Mike Burns <mburns at redhat.com>
---
M scripts/ovirtnode/storage.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/39/10639/1
diff --git a/scripts/ovirtnode/storage.py b/scripts/ovirtnode/storage.py
index ee4c401..c3ff852 100644
--- a/scripts/ovirtnode/storage.py
+++ b/scripts/ovirtnode/storage.py
@@ -906,7 +906,7 @@
for drive in self.HOSTVGDRIVE.strip(",").split(","):
space = self.get_drive_size(drive)
HOSTVGDRIVESPACE = HOSTVGDRIVESPACE + space
- ROOT_NEED_SIZE = self.ROOT_SIZE * 2
+ ROOT_NEED_SIZE = self.ROOT_SIZE * 2 + self.EFI_SIZE
HOSTVG_NEED_SIZE = (int(self.SWAP_SIZE) + int(self.CONFIG_SIZE) +
int(self.LOGGING_SIZE) + int(min_data_size))
drive_space_dict["ROOTDRIVESPACE"] = ROOTDRIVESPACE
--
To view, visit http://gerrit.ovirt.org/10639
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia2913f5bac68932cecf759184e22cb0e0a090064
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Michael Burns <mburns at redhat.com>
More information about the node-patches
mailing list