lkml.org 
[lkml]   [1998]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectBUGFIX: 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/

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