Mageia Bugzilla – Attachment 6520 Details for
Bug 15257
Live installer (not live mode) partitioner: Available disk space is not computed correctly (at least in small VM disks)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
enables to get raw available space (mga15257)
0002-enables-to-get-raw-available-space-mga15257.patch (text/plain), 926 bytes, created by
Thierry Vignaud
on 2015-05-12 10:33:30 CEST
(
hide
)
Description:
enables to get raw available space (mga15257)
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-05-12 10:33:30 CEST
Size:
926 bytes
patch
obsolete
>From 9da6ec408f73e93cb405093ee855eed1592c3d59 Mon Sep 17 00:00:00 2001 >From: Thierry Vignaud <thierry.vignaud@gmail.com> >Date: Tue, 12 May 2015 04:28:41 -0400 >Subject: [PATCH 2/2] enables to get raw available space (mga15257) > >--- > perl-install/fs/any.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm >index ce85c61..5133cae 100644 >--- a/perl-install/fs/any.pm >+++ b/perl-install/fs/any.pm >@@ -106,11 +106,11 @@ sub getNeededMinSpace { > } > > sub getAvailableSpace { >- my ($fstab, $o_skip_mounted) = @_; >+ my ($fstab, $o_skip_mounted, $o_skip_min_space) = @_; > > my $n = !$::testing && !$o_skip_mounted && getAvailableSpace_mounted($::prefix) || > getAvailableSpace_raw($fstab) * 512 / 1.07; >- $n - getNeededMinSpace($n); >+ $o_skip_min_space ? $n : $n - getNeededMinSpace($n); > } > > sub getAvailableSpace_mounted { >-- >2.3.2 >
From 9da6ec408f73e93cb405093ee855eed1592c3d59 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud <thierry.vignaud@gmail.com> Date: Tue, 12 May 2015 04:28:41 -0400 Subject: [PATCH 2/2] enables to get raw available space (mga15257) --- perl-install/fs/any.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-install/fs/any.pm b/perl-install/fs/any.pm index ce85c61..5133cae 100644 --- a/perl-install/fs/any.pm +++ b/perl-install/fs/any.pm @@ -106,11 +106,11 @@ sub getNeededMinSpace { } sub getAvailableSpace { - my ($fstab, $o_skip_mounted) = @_; + my ($fstab, $o_skip_mounted, $o_skip_min_space) = @_; my $n = !$::testing && !$o_skip_mounted && getAvailableSpace_mounted($::prefix) || getAvailableSpace_raw($fstab) * 512 / 1.07; - $n - getNeededMinSpace($n); + $o_skip_min_space ? $n : $n - getNeededMinSpace($n); } sub getAvailableSpace_mounted { -- 2.3.2
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 15257
:
6245
|
6517
|
6518
|
6519
| 6520 |
6521