]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
fuse: update to newer FUSE_USE_VERSION
authorJeff Layton <jlayton@redhat.com>
Wed, 3 Jun 2020 15:29:07 +0000 (11:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Wed, 3 Jun 2020 18:03:31 +0000 (14:03 -0400)
commitcfbc0fb48a9880dabe8f332e9bf67d81867ae198
treec2ec6cb4b0772d9b5897bc44ee1f551030b871e1
parent14c44071cf4c7613aea7c589c66108d9853996cb
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>
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