summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/partitioning_wizard.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@gmail.com>2015-04-19 22:55:57 +0000
committerPascal Terjan <pterjan@gmail.com>2015-04-19 22:55:57 +0000
commit8e034f26d81087858a25b15c779c536887fc95a3 (patch)
treeb2dc3a3849db777c58671042da65199785ff2f0d /perl-install/fs/partitioning_wizard.pm
parent1daabebda57976579465e5c281eaa14088e0e37f (diff)
downloaddrakx-8e034f26d81087858a25b15c779c536887fc95a3.tar
drakx-8e034f26d81087858a25b15c779c536887fc95a3.tar.gz
drakx-8e034f26d81087858a25b15c779c536887fc95a3.tar.bz2
drakx-8e034f26d81087858a25b15c779c536887fc95a3.tar.xz
drakx-8e034f26d81087858a25b15c779c536887fc95a3.zip
hide empty space < 2MB, we have such holes due to alignment (mga#15733)
Diffstat (limited to 'perl-install/fs/partitioning_wizard.pm')
-rw-r--r--perl-install/fs/partitioning_wizard.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index a30fa67d0..316e2f1b9 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -295,7 +295,9 @@ sub warn_reboot_needed {
sub create_display_box {
my ($kind, $resize, $fill_empty, $button) = @_;
- my @parts = diskdrake::hd_gtk::kind2parts($kind);
+ # Hide empty space < 2MB, wehave such holes due to alignment
+ my @parts = grep { $_->{size} > MB(2) || !isEmpty($_) } diskdrake::hd_gtk::kind2parts($kind);
+
my $totalsectors = diskdrake::hd_gtk::kind2sectors($kind, @parts);
my $width = 520;