From 68b5fa9b615bfd7da8a2f69a35c9cf1fd30b3c95 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Tue, 11 Jun 2013 18:33:08 -0700 Subject: [PATCH] ceph-fuse: older libfuses don't support FUSE_IOCTL_COMPAT Signed-off-by: Dan Mick Reviewed-by: Sage Weil --- src/client/fuse_ll.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/client/fuse_ll.cc b/src/client/fuse_ll.cc index 46480e61974d9..83395534d0dc0 100644 --- a/src/client/fuse_ll.cc +++ b/src/client/fuse_ll.cc @@ -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 }; -- 2.39.5