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 void *,
unsigned , const
char *,
size_t)
35 fuse_lowlevel_notify_inval_entry_cnt++;
38 static int __attribute__((used)) fuse_lowlevel_notify_expire_entry(
39 void *,
unsigned , const
char *,
size_t, enum fuse_expire_flags)
41 fuse_lowlevel_notify_inval_entry_cnt++;
45 #else // CVMFS_LIBCVMFS
46 #ifndef CVMFS_USE_LIBFUSE
47 #error "Build system error: CVMFS_USE_LIBFUSE unset"
50 #if CVMFS_USE_LIBFUSE == 2
51 #define FUSE_USE_VERSION 26
52 #include <fuse/fuse_lowlevel.h>
53 #include <fuse/fuse_opt.h>
54 #if(FUSE_VERSION < 28)
57 static int __attribute__((used)) fuse_lowlevel_notify_inval_entry(
58 void *,
unsigned long, const
char *,
size_t)
62 static int __attribute__((used)) fuse_lowlevel_notify_inval_inode(
63 void *, fuse_ino_t, off_t, off_t)
68 #endif // FUSE_VERSION < 28
71 #define FUSE_USE_VERSION 31
72 #include <fuse3/fuse.h>
73 #include <fuse3/fuse_lowlevel.h>
74 #include <fuse3/fuse_opt.h>
78 #endif // CVMFS_DUPLEX_FUSE_H_
struct cvmcache_object_info __attribute__