diff options
Diffstat (limited to 'perl-install/resize_fat/io.pm')
-rw-r--r-- | perl-install/resize_fat/io.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/resize_fat/io.pm b/perl-install/resize_fat/io.pm index 4d1a37158..48309db91 100644 --- a/perl-install/resize_fat/io.pm +++ b/perl-install/resize_fat/io.pm @@ -26,7 +26,7 @@ sub read_cluster($$) { my $buf; eval { - $buf = &read($fs, + $buf = &read($fs, $fs->{cluster_offset} + $cluster * $fs->{cluster_size}, $fs->{cluster_size}); }; @$ and die "reading cluster #$cluster failed on device $fs->{fs_name}"; @@ -36,9 +36,9 @@ sub write_cluster($$$) { my ($fs, $cluster, $buf) = @_; eval { - &write($fs, + &write($fs, $fs->{cluster_offset} + $cluster * $fs->{cluster_size}, - $fs->{cluster_size}, + $fs->{cluster_size}, $buf); }; @$ and die "writing cluster #$cluster failed on device $fs->{fs_name}"; } |