]> Git Repo - qemu.git/commit
gluster: add support for PREALLOC_MODE_FALLOC
authorNiels de Vos <[email protected]>
Sun, 28 May 2017 06:31:14 +0000 (12:01 +0530)
committerJeff Cody <[email protected]>
Fri, 2 Jun 2017 14:51:47 +0000 (10:51 -0400)
commitdf3a429ae82c0f45becdfab105617701d75e0f05
tree5d20fd188a2455f88e1525973f222d2d99cff7ea
parentd47a851caeda96d5979bf48d4bae6a87784ad91d
gluster: add support for PREALLOC_MODE_FALLOC

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 glfs_zerofill() and glfs_fallocate() have been introduced with
GlusterFS 3.5.0 (pkg-config glusterfs-api = 6). A #define for the
availability of glfs_fallocate() has been added to ./configure.

Reported-by: Satheesaran Sundaramoorthi <[email protected]>
Signed-off-by: Niels de Vos <[email protected]>
Message-id: 20170528063114[email protected]
URL: https://bugzilla.redhat.com/1450759
Signed-off-by: Niels de Vos <[email protected]>
Signed-off-by: Jeff Cody <[email protected]>
block/gluster.c
configure
This page took 0.025247 seconds and 4 git commands to generate.