Re: mmap behavior on out-of-space conditions

2007-08-02 Thread David Chinner
On Thu, Aug 02, 2007 at 03:06:15PM +0200, Peter Zijlstra wrote: > On Thu, 2007-08-02 at 14:41 +0200, Petr Tesarik wrote: > > Hello, > > > > while solving a different issue, my colleague Libor Pechacek found a > > problem with handling mmapped sparse files. If you mmap the hole insidea > > sparse f

Re: mmap behavior on out-of-space conditions

2007-08-02 Thread Andrew Morton
On Thu, 2 Aug 2007 15:18:33 +0200 "Guillaume Chazarain" <[EMAIL PROTECTED]> wrote: > 2007/8/2, Peter Zijlstra <[EMAIL PROTECTED]>: > > > I think Dave's block_page_mkwrite() stuff addresses this as well, no? > > > > http://lkml.org/lkml/2007/3/18/198 > > I saw a similar problem some time ago with

Re: mmap behavior on out-of-space conditions

2007-08-02 Thread Guillaume Chazarain
2007/8/2, Peter Zijlstra <[EMAIL PROTECTED]>: > I think Dave's block_page_mkwrite() stuff addresses this as well, no? > > http://lkml.org/lkml/2007/3/18/198 I saw a similar problem some time ago with msync: http://lkml.org/lkml/2006/12/29/136 but Andrew didn't like my patch. -- Guillaume - To u

Re: mmap behavior on out-of-space conditions

2007-08-02 Thread Peter Zijlstra
On Thu, 2007-08-02 at 14:41 +0200, Petr Tesarik wrote: > Hello, > > while solving a different issue, my colleague Libor Pechacek found a > problem with handling mmapped sparse files. If you mmap the hole insidea > sparse file and write to it, the data gets silently lost if there is not > enough sp