]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-fuse: older libfuses don't support FUSE_IOCTL_COMPAT
authorDan Mick <dan.mick@inktank.com>
Wed, 12 Jun 2013 01:33:08 +0000 (18:33 -0700)
committerSage Weil <sage@inktank.com>
Wed, 12 Jun 2013 16:43:12 +0000 (09:43 -0700)
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/client/fuse_ll.cc

index 46480e61974d901c4d0529f434d87a4b7f276fef..83395534d0dc09a7f2a6a56735c6262ab28caafd 100644 (file)
@@ -369,6 +369,7 @@ static void fuse_ll_flush(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info
   fuse_reply_err(req, 0);
 }
 
+#ifdef FUSE_IOCTL_COMPAT
 static void fuse_ll_ioctl(fuse_req_t req, fuse_ino_t ino, int cmd, void *arg, struct fuse_file_info *fi,
                           unsigned flags, const void *in_buf, size_t in_bufsz, size_t out_bufsz)
 {
@@ -396,6 +397,7 @@ static void fuse_ll_ioctl(fuse_req_t req, fuse_ino_t ino, int cmd, void *arg, st
       fuse_reply_err(req, EINVAL);
   }
 }
+#endif
 
 static void fuse_ll_release(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
 {
@@ -597,7 +599,9 @@ const static struct fuse_lowlevel_ops fuse_ll_oper = {
  getlk: 0,
  setlk: 0,
  bmap: 0,
- ioctl: fuse_ll_ioctl
+#ifdef FUSE_IOCTL_COMPAT
+ ioctl: fuse_ll_ioctl,
+#endif
 };