]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-fuse: fallocate appears in fuse 2.9.1, not 2.9
authorSage Weil <sage@inktank.com>
Tue, 20 Aug 2013 04:46:29 +0000 (21:46 -0700)
committerSage Weil <sage@inktank.com>
Tue, 20 Aug 2013 05:49:49 +0000 (22:49 -0700)
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 <sage@inktank.com>
src/client/fuse_ll.cc

index e62307d84524def0a92cb267846d8c9be52204b1..58093d2de980fdd88270ed8dfc91327dbeafae1c 100644 (file)
@@ -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,