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/
This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:25 EST