Commit Graph

9 Commits

Author SHA1 Message Date
Jeff Layton cfbc0fb48a 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>
2020-06-03 14:03:31 -04:00
Kefu Chai 15f13561d1 fusetrace: s/Mutex/ceph::mutex/
Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-08-03 11:27:20 +08:00
Danny Al-Gaaf b4b79ebbec remove superfluous second semicolons at end of lines
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2014-05-08 10:09:25 +02:00
Noah Watkins 4c4e1d0d47 libc++: use ceph:: namespaced data types
Switches the implemetnation of smart pointers and unordered map/set to
use the ceph:: versions.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2014-01-18 14:03:20 -08:00
majianpeng 63f5814855 ceph: Update FUSE_USE_VERSION from 26 to 30.
When compiling, it met this error:
>In file included from /usr/local/include/fuse/fuse.h:19:0,
>                 from client/fuse_ll.cc:17:
>/usr/local/include/fuse/fuse_common.h:474:4: error: #error only API
>version 30 or greater is supported
Update FUSE_USE_VERSION from 26 to 30.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
2013-10-02 14:42:43 -07:00
Danny Al-Gaaf 367e203f9a fusetrace_ll.cc: handle return value of fuse_session_loop()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-06-03 15:22:58 +02:00
Danny Al-Gaaf 94d370e739 fusetrace_ll.cc: reduce scope of 'int err' in main()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2013-03-11 12:13:06 +01:00
Danny Al-Gaaf f814afad70 fusetrace_ll.cc: remove twice included sys/time.h
Fix includes: remove twice included sys/time.h

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
2012-11-28 08:25:32 -08:00
Sage Weil c1865445c5 reorganized source tree 2007-12-19 13:28:33 -08:00