[f23-branch 2/2] Autopart use 90% of disk capacity for required space compare (#1224048)
jkonecny12
installerbot-noreply at redhat.com
Thu Sep 10 12:40:37 UTC 2015
From: Jiri Konecny <jkonecny at redhat.com>
We need to reduce the disk capacity for space required comparison
because fs takes some for metadata.
Related: rhbz#1224048
---
pyanaconda/ui/gui/spokes/storage.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 6f2b8ce..181e97c 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -824,9 +824,10 @@ def _check_space_and_get_dialog(self, disks):
log.debug("disk free: %s fs free: %s sw needs: %s auto swap: %s",
disk_free, fs_free, required_space, auto_swap)
- if disk_free >= required_space + auto_swap:
+ # compare only to 90% of disk space because fs takes some space for a metadata
+ if (disk_free * 0.9) >= required_space + auto_swap:
dialog = None
- elif disks_size >= required_space:
+ elif (disks_size * 0.9) >= required_space:
dialog = NeedSpaceDialog(self.data, payload=self.payload)
dialog.refresh(required_space, auto_swap, disk_free, fs_free)
else:
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/183a1941c84db9a095d77248cd23e2c8fd6b240c
More information about the anaconda-patches
mailing list