diff options
author | Francois Pons <fpons@mandriva.com> | 2000-02-09 11:40:32 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-02-09 11:40:32 +0000 |
commit | 77d16a3330cab8b9c86667220114542958e7a348 (patch) | |
tree | e7fa44df3f8315f3e9cbad50b87bfc8250aeb6d4 /perl-install/resize_fat/fat.pm | |
parent | 4ce69234e573c58002f3d1a9f361489410e883b2 (diff) | |
download | drakx-77d16a3330cab8b9c86667220114542958e7a348.tar drakx-77d16a3330cab8b9c86667220114542958e7a348.tar.gz drakx-77d16a3330cab8b9c86667220114542958e7a348.tar.bz2 drakx-77d16a3330cab8b9c86667220114542958e7a348.tar.xz drakx-77d16a3330cab8b9c86667220114542958e7a348.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/resize_fat/fat.pm')
-rw-r--r-- | perl-install/resize_fat/fat.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/resize_fat/fat.pm b/perl-install/resize_fat/fat.pm index 83426471a..33572624a 100644 --- a/perl-install/resize_fat/fat.pm +++ b/perl-install/resize_fat/fat.pm @@ -46,6 +46,10 @@ sub allocate_remap { resize_fat::c_rewritten::allocate_fat_remap($fs->{fat_size}); + #- patch to reset contents of memory allocated by allocate_fat_remap + #- divide by 4 because fat_size is in bytes. + foreach (0..$fs->{fat_size}/4 - 1) { resize_fat::c_rewritten::set_fat_remap($_, 0) } + $fs->{last_free_cluster} = 2; for ($cluster = 2; $cluster < $fs->{nb_clusters} + 2; $cluster++) { if ($cluster < $cut_point) { |