Re: [Qemu-devel] [PATCH v3] gluster: add support for PREALLOC_MODE_FALLOC

2017-05-31 Thread Jeff Cody
On Sun, May 28, 2017 at 12:01:14PM +0530, Niels de Vos wrote: > Add missing support for "preallocation=falloc" to the Gluster block > driver. This change bases its logic on that of block/file-posix.c and > removed the gluster_supports_zerofill() and qemu_gluster_zerofill() > functions in favour of

[Qemu-devel] [PATCH v3] gluster: add support for PREALLOC_MODE_FALLOC

2017-05-28 Thread Niels de Vos
Add missing support for "preallocation=falloc" to the Gluster block driver. This change bases its logic on that of block/file-posix.c and removed the gluster_supports_zerofill() and qemu_gluster_zerofill() functions in favour of #ifdef checks in an easy to read switch-statement. Both