Messages in this thread Patch in this message | | | Date | Sun, 1 Nov 1998 05:28:52 +0100 (CET) | From | Daniel Kobras <> | Subject | BUGFIX: mmap() broken on vfat w/ >512 byte blocks. |
| |
Moi!
mmap() on a vfat filesystems with a block size of 1024 or 2048 bytes has been broken for quite some time. Hopefully this is the culprit: I found it a nice idea telling fat_file_read() which file it has to act upon. ;-) The following patch for linux/fs/fat/mmap.c fixes it for me.
Kiitos hei,
Daniel.
--- mmap.c.orig Sun Nov 1 04:10:26 1998 +++ mmap.c Sun Nov 1 05:14:18 1998 @@ -58,6 +58,7 @@ } filp.f_reada = 0; filp.f_pos = pos; + filp.f_dentry=area->vm_file->f_dentry; need_read = PAGE_SIZE - clear; { mm_segment_t cur_fs = get_fs();
- 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/
| |