]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
fuse: update to newer FUSE_USE_VERSION 35450/head
authorJeff Layton <jlayton@redhat.com>
Wed, 3 Jun 2020 15:29:07 +0000 (11:29 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 18 Jun 2020 21:06:47 +0000 (23:06 +0200)
commit1536a1a8a6acb420e640619aed67fd87ba7761b9
tree03fb388792020c8bd72933d6adb6538c296c3062
parentf1e7ea418b297b352e4eed6946a7b9c24a4edba3
fuse: update to newer FUSE_USE_VERSION

The build was failing for me against fuse-devel v3.9.1. The prototype
for fuse_ll_ioctl was wrong, as it was expecting the old-style one with
signed int args.

In newer libfuse versions, the prototype varies based on
FUSE_USE_VERSION. Update to a newer FUSE_USE_VERSION value to ensure
that we use the newer ioctl prototype. This also means that we need to
handle a new prototype for fuse_session_loop_mt as well.

While we're in here, move the definition of FUSE_USE_VERSION to
ceph_fuse.h so we have the definition in one place. This does mean we
need to reorganize the includes in a few places.

Fixes: https://tracker.ceph.com/issues/45866
Signed-off-by: Jeff Layton <jlayton@redhat.com>
(cherry picked from commit cfbc0fb48a9880dabe8f332e9bf67d81867ae198)
fusetrace/fusetrace_ll.cc
src/ceph_fuse.cc
src/client/fuse_ll.cc
src/client/fuse_ll.h
src/include/ceph_fuse.h
src/os/FuseStore.cc
src/rbd_fuse/rbd-fuse.cc