summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-03-12 11:55:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-03-12 11:55:07 +0000
commit82b96bd167514ccf969593a5a7ad1f3195ba4dc3 (patch)
treede21c1143aa65d7297b6041abcefe86b09ca4de7
parent5654d1ae791fc037b8cb094e6691734c21f3a4b2 (diff)
downloaddrakx-backup-do-not-use-82b96bd167514ccf969593a5a7ad1f3195ba4dc3.tar
drakx-backup-do-not-use-82b96bd167514ccf969593a5a7ad1f3195ba4dc3.tar.gz
drakx-backup-do-not-use-82b96bd167514ccf969593a5a7ad1f3195ba4dc3.tar.bz2
drakx-backup-do-not-use-82b96bd167514ccf969593a5a7ad1f3195ba4dc3.tar.xz
drakx-backup-do-not-use-82b96bd167514ccf969593a5a7ad1f3195ba4dc3.zip
fix maximum loopback size (bug #3188)
-rw-r--r--perl-install/diskdrake/interactive.pm2
-rw-r--r--perl-install/install_interactive.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm
index 896a826dd..882368416 100644
--- a/perl-install/diskdrake/interactive.pm
+++ b/perl-install/diskdrake/interactive.pm
@@ -847,7 +847,7 @@ sub Loopback {
my $handle = any::inspect($real_part) or $in->ask_warn('', N("This partition can't be used for loopback")), return;
my ($min, $max) = (1, loopback::getFree($handle->{dir}, $real_part));
- $max = max($max, 1 << (31 - 9)) if isFat($real_part); #- FAT doesn't handle file size bigger than 2GB
+ $max = min($max, 1 << (31 - 9)) if isFat($real_part); #- FAT doesn't handle file size bigger than 2GB
my $part = { maxsize => $max, size => 0, loopback_device => $real_part, notFormatted => 1 };
if (!fsedit::suggest_part($part, $all_hds)) {
$part->{size} = $part->{maxsize};
diff --git a/perl-install/install_interactive.pm b/perl-install/install_interactive.pm
index fe7c22995..6fc358362 100644
--- a/perl-install/install_interactive.pm
+++ b/perl-install/install_interactive.pm
@@ -82,7 +82,7 @@ sub partitionWizardSolutions {
my (%solutions);
my $min_linux = 400 << 11;
- my $max_linux = 3000 << 11;
+ my $max_linux = 2000 << 11;
my $min_swap = 50 << 11;
my $max_swap = 300 << 11;
my $min_freewin = 100 << 11;