Re: Make vnd(4) work on sparse files

2011-06-24 Thread Manuel Bouyer
On Fri, Jun 24, 2011 at 04:13:14PM -0400, Thor Lancelot Simon wrote: > On Fri, Jun 24, 2011 at 10:00:26PM +0200, J. Hannken-Illjes wrote: > > ... this time with a diff attached: > > > > With the attached diff vnd(4) devices will work on sparse files. > > - Make the strategy decision a device flag

Re: Make vnd(4) work on sparse files

2011-06-24 Thread Thor Lancelot Simon
On Fri, Jun 24, 2011 at 10:00:26PM +0200, J. Hannken-Illjes wrote: > ... this time with a diff attached: > > With the attached diff vnd(4) devices will work on sparse files. > - Make the strategy decision a device flag and set to VNF_USE_VN_RDWR for > files known to be sparse. What will the cons

Re: Make vnd(4) work on sparse files

2011-06-24 Thread J. Hannken-Illjes
... this time with a diff attached: With the attached diff vnd(4) devices will work on sparse files. - Make the strategy decision a device flag and set to VNF_USE_VN_RDWR for files known to be sparse. - Change handle_with_rdwr() to use POSIX_FADV_NOREUSE advise to disable read ahead. - Keep the

Make vnd(4) work on sparse files

2011-06-24 Thread J. Hannken-Illjes
With the attached diff vnd(4) devices will work on sparse files. - Make the strategy decision a device flag and set to VNF_USE_VN_RDWR for files known to be sparse. - Change handle_with_rdwr() to use POSIX_FADV_NOREUSE advise to disable read ahead. - Keep the amount of mapped pages below 1 MByt