diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-07-30 17:57:47 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-07-30 17:57:47 +0000 |
commit | de8879188195f04fc804650ed3bf2aaf377475fb (patch) | |
tree | 798ef2fdf0a38ae0b03473bfc228e545bd859a14 | |
parent | 4fe3fa0731df002a22320458e5e55c5cc1ec5318 (diff) | |
download | draklive-de8879188195f04fc804650ed3bf2aaf377475fb.tar draklive-de8879188195f04fc804650ed3bf2aaf377475fb.tar.gz draklive-de8879188195f04fc804650ed3bf2aaf377475fb.tar.bz2 draklive-de8879188195f04fc804650ed3bf2aaf377475fb.tar.xz draklive-de8879188195f04fc804650ed3bf2aaf377475fb.zip |
rename size as total_size
-rwxr-xr-x | draklive | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |