lkml.org 
[lkml]   [2000]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.3.4[34] breaks FAT?


On Sun, 13 Feb 2000, Oleg Drokin wrote:

> Hello!
>
> Smth wrong with FAT, here on 2.3.4[34].
> Seems that last sector of file is not read and filled with zeroes.

Yup, off-by-block in fs/fat/cache.c. Please, try the following:
@@ -283,7 +283,7 @@
return 0;
return sector+sb->dir_start;
}
- if (sector >= MSDOS_I(inode)->mmu_private>>9)
+ if (sector >= (MSDOS_I(inode)->mmu_private+511)>>9)
return 0;
cluster = sector/sb->cluster_size;
offset = sector % sb->cluster_size;

- it should solve the problem. Sorry about that.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:8.083 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site