Re: [Dazuko-devel] Patch for mmap Bug in dazukofs 3.1.0-rc1

2009-07-02 Thread Lino Sanfilippo
John Ogness wrote: On 2009-07-01, Lino Sanfilippo wrote: This patch ensures that generic_file_readonly_mmap() is only called if the lower file actually supports mmap. If not the error code -ENODEV, which is used by the vfs to indicate that mmap is not supported, is returned. +static int da

Re: [Dazuko-devel] Patch for mmap Bug in dazukofs 3.1.0-rc1

2009-07-02 Thread John Ogness
On 2009-07-01, Lino Sanfilippo wrote: > This patch ensures that generic_file_readonly_mmap() is only called > if the lower file actually supports mmap. > > If not the error code -ENODEV, which is used by the vfs to indicate > that mmap is not supported, is returned. > > +static int dazukofs_mmap(s

[Dazuko-devel] Patch for mmap Bug in dazukofs 3.1.0-rc1

2009-07-01 Thread Lino Sanfilippo
Hi all, although the new mmap() approach (deny writing, allow reading) used by dazukofs 3.1.0-rc1 works very fine so far (the BUG reported on dazukofs help mailing list: http://lists.gnu.org/archive/html/dazuko-help/2009-04/msg8.html seems to be fixed), there is still a litte flaw: If the