diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2003-01-28 11:23:14 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2003-01-28 11:23:14 +0000 |
commit | 42f4e1a49e76543a86d1ac54864ba6519164b8d3 (patch) | |
tree | 426e2031f71e5ccb65d27f84797bb34d3e5f6422 | |
parent | e84789f6bdf9901d44bb8da95e784323a1ad04a7 (diff) | |
download | drakx-42f4e1a49e76543a86d1ac54864ba6519164b8d3.tar drakx-42f4e1a49e76543a86d1ac54864ba6519164b8d3.tar.gz drakx-42f4e1a49e76543a86d1ac54864ba6519164b8d3.tar.bz2 drakx-42f4e1a49e76543a86d1ac54864ba6519164b8d3.tar.xz drakx-42f4e1a49e76543a86d1ac54864ba6519164b8d3.zip |
for resize2fs, don't multiply by 512 *then* divide by $block_size, better
divide by ($block_size / 512)
-rw-r--r-- | perl-install/diskdrake/interactive.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index 11b326af6..95a7920bc 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -704,7 +704,7 @@ sub Resize { local *log::l = sub { $w->set(join(' ', @_)) }; $nice_resize{fat}->resize($part->{size}); } elsif ($nice_resize{ext2}) { - my $s = int(($part->{size} << 9) / $block_size); + my $s = int($part->{size} / ($block_size / 512)); log::l("resize2fs $nice_resize{ext2} to size $s in block of $block_size bytes"); run_program::run("resize2fs", "-pf", $nice_resize{ext2}, $s); } elsif ($nice_resize{reiserfs}) { |