5 #ifndef CVMFS_DUPLEX_FUSE_H_
6 #define CVMFS_DUPLEX_FUSE_H_
10 #include <sys/types.h>
11 #define FUSE_VERSION 29
12 #define FUSE_ROOT_ID 1
14 typedef unsigned long fuse_ino_t;
16 struct fuse_chan {
int dummy; };
17 struct fuse_lowlevel_ops {
int dummy; };
18 enum fuse_expire_flags {
19 FUSE_LL_EXPIRE_ONLY = (1 << 0),
24 extern unsigned fuse_lowlevel_notify_inval_inode_cnt;
25 extern unsigned fuse_lowlevel_notify_inval_entry_cnt;
26 static int __attribute__((used)) fuse_lowlevel_notify_inval_inode(
27 void *,
unsigned , off_t, off_t)
29 fuse_lowlevel_notify_inval_inode_cnt++;
32 static int __attribute__((used)) fuse_lowlevel_notify_inval_entry(
33 struct fuse_chan *, fuse_ino_t, const
char *,
size_t)
35 fuse_lowlevel_notify_inval_entry_cnt++;
39 #define CVMFS_USE_LIBFUSE 2
40 #else // CVMFS_LIBCVMFS
41 #ifndef CVMFS_USE_LIBFUSE
42 #error "Build system error: CVMFS_USE_LIBFUSE unset"
45 #if CVMFS_USE_LIBFUSE == 2
46 #define FUSE_USE_VERSION 26
47 #include <fuse/fuse_lowlevel.h>
48 #include <fuse/fuse_opt.h>
49 #if(FUSE_VERSION < 28)
52 static int __attribute__((used)) fuse_lowlevel_notify_inval_entry(
53 void *,
unsigned long, const
char *,
size_t)
57 static int __attribute__((used)) fuse_lowlevel_notify_inval_inode(
58 void *, fuse_ino_t, off_t, off_t)
63 #endif // FUSE_VERSION < 28
66 #ifdef CVMFS_ENABLE_FUSE3_LOOP_CONFIG
67 #define FUSE_USE_VERSION 312
69 #define FUSE_USE_VERSION 31
71 #include <fuse3/fuse.h>
72 #include <fuse3/fuse_lowlevel.h>
73 #include <fuse3/fuse_opt.h>
77 #endif // CVMFS_DUPLEX_FUSE_H_
struct cvmcache_object_info __attribute__