From: Sage Weil Date: Tue, 20 Aug 2013 04:46:29 +0000 (-0700) Subject: ceph-fuse: fallocate appears in fuse 2.9.1, not 2.9 X-Git-Tag: v0.69~91^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6eee73c9b7fc57438a8313c74fc0c8da37a6f642;p=ceph.git ceph-fuse: fallocate appears in fuse 2.9.1, not 2.9 There is no macro to differentiate 2.9 from 2.9.1, so we have to wait to use this until 3.0. :( Signed-off-by: Sage Weil --- diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index e62307d84524..58093d2de980 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -400,7 +400,7 @@ static void fuse_ll_ioctl(fuse_req_t req, fuse_ino_t ino, int cmd, void *arg, st } #endif -#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 9) +#if FUSE_VERSION > FUSE_MAKE_VERSION(2, 9) static void fuse_ll_fallocate(fuse_req_t req, fuse_ino_t ino, int mode, off_t offset, off_t length, @@ -623,7 +623,7 @@ const static struct fuse_lowlevel_ops fuse_ll_oper = { ioctl: 0, #endif poll: 0, -#if FUSE_VERSION >= FUSE_MAKE_VERSION(2, 9) +#if FUSE_VERSION > FUSE_MAKE_VERSION(2, 9) write_buf: 0, retrieve_reply: 0, forget_multi: 0,