Messages in this thread | | | Date | Sun, 13 Feb 2000 15:42:47 -0500 (EST) | From | Alexander Viro <> | Subject | Re: 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/
| |