summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-07-30 17:57:47 +0000
committerOlivier Blin <oblin@mandriva.com>2009-07-30 17:57:47 +0000
commitde8879188195f04fc804650ed3bf2aaf377475fb (patch)
tree798ef2fdf0a38ae0b03473bfc228e545bd859a14
parent4fe3fa0731df002a22320458e5e55c5cc1ec5318 (diff)
downloaddrakiso-de8879188195f04fc804650ed3bf2aaf377475fb.tar
drakiso-de8879188195f04fc804650ed3bf2aaf377475fb.tar.gz
drakiso-de8879188195f04fc804650ed3bf2aaf377475fb.tar.bz2
drakiso-de8879188195f04fc804650ed3bf2aaf377475fb.tar.xz
drakiso-de8879188195f04fc804650ed3bf2aaf377475fb.zip
rename size as total_size
-rwxr-xr-xdraklive4
1 files changed, 2 insertions, 2 deletions
diff --git a/draklive b/draklive
index 2061781..b94d9e5 100755
--- a/draklive
+++ b/draklive
@@ -678,7 +678,7 @@ sub allocate_partition {
}
sub allocate_master {
- my ($live, $media, $dest, $size) = @_;
+ my ($live, $media, $dest, $total_size) = @_;
mkdir_p(dirname($dest));
my $geom = {
heads => 16,
@@ -688,7 +688,7 @@ sub allocate_master {
my $track_size = $sector_size * $geom->{sectors};
my $cylinder_size = $track_size * $geom->{heads};
- my $disk_size = $size + $track_size;
+ my $disk_size = $total_size + $track_size;
$geom->{cylinders} = int($disk_size / $cylinder_size);
MDV::Draklive::Utils::device_allocate_file($dest, $disk_size);