From 6eee73c9b7fc57438a8313c74fc0c8da37a6f642 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 19 Aug 2013 21:46:29 -0700 Subject: [PATCH] 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 --- src/client/fuse_ll.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index e62307d8452..58093d2de98 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, -- 2.47.3