[PATCH] vfs_glusterfs: Add fallocate support for vfs_glusterfs

Jeremy Allison jra at samba.org
Wed Jan 10 20:34:40 UTC 2018


Hi Sachin,

Unfortunately this won't compile on an older
version of Gluster - it doesn't seem to have
glfs_discard() or glfs_fallocate().

What version of gluster were these added to ?

I think you might also need to update this
code in source3/wscript that detects the
version of the glusterfs-api.

    if Options.options.with_glusterfs:
        conf.CHECK_CFG(package='glusterfs-api', args='"glusterfs-api >= 4" --cflags --libs',
                       msg='Checking for glusterfs-api >= 4', uselib_store="GFAPI")
        conf.CHECK_HEADERS('glusterfs/api/glfs.h', lib='gfapi')
        conf.CHECK_LIB('gfapi', shlib=True)

Jeremy.



More information about the samba-technical mailing list