25#include <sys/statvfs.h> 
   52        FUSE_READDIR_PLUS = (1 << 0)
 
 
   69        FUSE_FILL_DIR_PLUS = (1 << 1)
 
 
   88                                const struct stat *stbuf, off_t off,
 
  260        int32_t ac_attr_timeout_set;
 
  261        double ac_attr_timeout;
 
 
  379        int (*
mknod) (
const char *, mode_t, dev_t);
 
  387        int (*
mkdir) (
const char *, mode_t);
 
  407        int (*
rename) (
const char *, 
const char *, 
unsigned int flags);
 
  410        int (*
link) (
const char *, 
const char *);
 
  497        int (*
read) (
const char *, 
char *, size_t, off_t,
 
  509        int (*
write) (
const char *, 
const char *, size_t, off_t,
 
  516        int (*
statfs) (
const char *, 
struct statvfs *);
 
  570        int (*
setxattr) (
const char *, 
const char *, 
const char *, size_t, int);
 
  573        int (*
getxattr) (
const char *, 
const char *, 
char *, size_t);
 
  719         int (*
utimens) (
const char *, 
const struct timespec tv[2],
 
  728        int (*
bmap) (
const char *, 
size_t blocksize, uint64_t *idx);
 
  730#if FUSE_USE_VERSION < 35 
  731        int (*
ioctl) (
const char *, 
int cmd, 
void *arg,
 
  750        int (*
ioctl) (
const char *, 
unsigned int cmd, 
void *arg,
 
  770                     struct fuse_pollhandle *ph, 
unsigned *reventsp);
 
  845                                    off_t offset_in, 
const char *path_out,
 
  847                                    off_t offset_out, 
size_t size, 
int flags);
 
 
  888static inline int fuse_main_real(
int argc, 
char *argv[],
 
  890                                 size_t op_size, 
void *user_data)
 
  893                                           .minor = FUSE_MINOR_VERSION,
 
  894                                           .hotfix = FUSE_HOTFIX_VERSION,
 
  898                 "%s is a libfuse internal function, please use fuse_main()\n",
 
  959static inline int fuse_main_fn(
int argc, 
char *argv[],
 
  964                .major  = FUSE_MAJOR_VERSION,
 
  965                .minor  = FUSE_MINOR_VERSION,
 
  966                .hotfix = FUSE_HOTFIX_VERSION,
 
  973#define fuse_main(argc, argv, op, user_data) \ 
  974        fuse_main_fn(argc, argv, op, user_data) 
  994struct fuse *_fuse_new_30(
struct fuse_args *args,
 
  997struct fuse *_fuse_new_31(
struct fuse_args *args,
 
 1028#if FUSE_USE_VERSION == 30 
 1029static inline struct fuse *fuse_new_fn(
struct fuse_args *args,
 
 1031                                       size_t op_size, 
void *user_data)
 
 1034                .major = FUSE_MAJOR_VERSION,
 
 1035                .minor = FUSE_MINOR_VERSION,
 
 1036                .hotfix = FUSE_HOTFIX_VERSION,
 
 1040        return _fuse_new_30(args, op, op_size, &version, user_data);
 
 1043static inline struct fuse *fuse_new_fn(
struct fuse_args *args,
 
 1045                                       size_t op_size, 
void *user_data)
 
 1048                .major = FUSE_MAJOR_VERSION,
 
 1049                .minor = FUSE_MINOR_VERSION,
 
 1050                .hotfix = FUSE_HOTFIX_VERSION,
 
 1054        return _fuse_new_31(args, op, op_size, &version, user_data);
 
 1057#define fuse_new(args, op, size, data) fuse_new_fn(args, op, size, data) 
 1067int fuse_mount(
struct fuse *f, 
const char *mountpoint);
 
 1115#if FUSE_USE_VERSION < 32 
 1116int fuse_loop_mt_31(
struct fuse *f, 
int clone_fd);
 
 1117#define fuse_loop_mt(f, clone_fd) fuse_loop_mt_31(f, clone_fd) 
 1118#elif FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12) 
 1120#define fuse_loop_mt(f, config) fuse_loop_mt_32(f, config) 
 1153#if (defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS)) 
 1156#define fuse_loop_mt(f, config) fuse_loop_mt_312(f, config) 
 1259int fuse_fs_getattr(
struct fuse_fs *fs, 
const char *path, 
struct stat *buf,
 
 1261int fuse_fs_rename(
struct fuse_fs *fs, 
const char *oldpath,
 
 1262                   const char *newpath, 
unsigned int flags);
 
 1263int fuse_fs_unlink(
struct fuse_fs *fs, 
const char *path);
 
 1264int fuse_fs_rmdir(
struct fuse_fs *fs, 
const char *path);
 
 1265int fuse_fs_symlink(
struct fuse_fs *fs, 
const char *linkname,
 
 1267int fuse_fs_link(
struct fuse_fs *fs, 
const char *oldpath, 
const char *newpath);
 
 1268int fuse_fs_release(
struct fuse_fs *fs,  
const char *path,
 
 1270int fuse_fs_open(
struct fuse_fs *fs, 
const char *path,
 
 1272int fuse_fs_read(
struct fuse_fs *fs, 
const char *path, 
char *buf, 
size_t size,
 
 1274int fuse_fs_read_buf(
struct fuse_fs *fs, 
const char *path,
 
 1275                     struct fuse_bufvec **bufp, 
size_t size, off_t off,
 
 1277int fuse_fs_write(
struct fuse_fs *fs, 
const char *path, 
const char *buf,
 
 1279int fuse_fs_write_buf(
struct fuse_fs *fs, 
const char *path,
 
 1282int fuse_fs_fsync(
struct fuse_fs *fs, 
const char *path, 
int datasync,
 
 1284int fuse_fs_flush(
struct fuse_fs *fs, 
const char *path,
 
 1286int fuse_fs_statfs(
struct fuse_fs *fs, 
const char *path, 
struct statvfs *buf);
 
 1287int fuse_fs_opendir(
struct fuse_fs *fs, 
const char *path,
 
 1289int fuse_fs_readdir(
struct fuse_fs *fs, 
const char *path, 
void *buf,
 
 1292int fuse_fs_fsyncdir(
struct fuse_fs *fs, 
const char *path, 
int datasync,
 
 1294int fuse_fs_releasedir(
struct fuse_fs *fs, 
const char *path,
 
 1296int fuse_fs_create(
struct fuse_fs *fs, 
const char *path, mode_t mode,
 
 1298int fuse_fs_lock(
struct fuse_fs *fs, 
const char *path,
 
 1300int fuse_fs_flock(
struct fuse_fs *fs, 
const char *path,
 
 1302int fuse_fs_chmod(
struct fuse_fs *fs, 
const char *path, mode_t mode,
 
 1304int fuse_fs_chown(
struct fuse_fs *fs, 
const char *path, uid_t uid, gid_t gid,
 
 1306int fuse_fs_truncate(
struct fuse_fs *fs, 
const char *path, off_t size,
 
 1308int fuse_fs_utimens(
struct fuse_fs *fs, 
const char *path,
 
 1310int fuse_fs_access(
struct fuse_fs *fs, 
const char *path, 
int mask);
 
 1311int fuse_fs_readlink(
struct fuse_fs *fs, 
const char *path, 
char *buf,
 
 1313int fuse_fs_mknod(
struct fuse_fs *fs, 
const char *path, mode_t mode,
 
 1315int fuse_fs_mkdir(
struct fuse_fs *fs, 
const char *path, mode_t mode);
 
 1316int fuse_fs_setxattr(
struct fuse_fs *fs, 
const char *path, 
const char *name,
 
 1317                     const char *value, 
size_t size, 
int flags);
 
 1318int fuse_fs_getxattr(
struct fuse_fs *fs, 
const char *path, 
const char *name,
 
 1319                     char *value, 
size_t size);
 
 1320int fuse_fs_listxattr(
struct fuse_fs *fs, 
const char *path, 
char *list,
 
 1322int fuse_fs_removexattr(
struct fuse_fs *fs, 
const char *path,
 
 1324int fuse_fs_bmap(
struct fuse_fs *fs, 
const char *path, 
size_t blocksize,
 
 1326#if FUSE_USE_VERSION < 35 
 1327int fuse_fs_ioctl(
struct fuse_fs *fs, 
const char *path, 
int cmd,
 
 1331int fuse_fs_ioctl(
struct fuse_fs *fs, 
const char *path, 
unsigned int cmd,
 
 1335int fuse_fs_poll(
struct fuse_fs *fs, 
const char *path,
 
 1337                 unsigned *reventsp);
 
 1338int fuse_fs_fallocate(
struct fuse_fs *fs, 
const char *path, 
int mode,
 
 1340ssize_t fuse_fs_copy_file_range(
struct fuse_fs *fs, 
const char *path_in,
 
 1342                                const char *path_out,
 
 1344                                size_t len, 
int flags);
 
 1345off_t fuse_fs_lseek(
struct fuse_fs *fs, 
const char *path, off_t off, 
int whence,
 
 1347void fuse_fs_init(
struct fuse_fs *fs, 
struct fuse_conn_info *conn,
 
 1349void fuse_fs_destroy(
struct fuse_fs *fs);
 
 1351int fuse_notify_poll(
struct fuse_pollhandle *ph);
 
 1367                            void *private_data);
 
 1383typedef struct fuse_fs *(*fuse_module_factory_t)(
struct fuse_args *args,
 
 1384                                                 struct fuse_fs *fs[]);
 
 1395#define FUSE_REGISTER_MODULE(name_, factory_) \ 
 1396        fuse_module_factory_t fuse_module_ ## name_ ## _factory = factory_ 
 
int fuse_getgroups(int size, gid_t list[])
int fuse_mount(struct fuse *f, const char *mountpoint)
int fuse_interrupted(void)
void fuse_destroy(struct fuse *f)
int fuse_main_real_versioned(int argc, char *argv[], const struct fuse_operations *op, size_t op_size, struct libfuse_version *version, void *user_data)
int fuse_start_cleanup_thread(struct fuse *fuse)
int fuse_invalidate_path(struct fuse *f, const char *path)
struct fuse_context * fuse_get_context(void)
int fuse_loop(struct fuse *f)
int(* fuse_fill_dir_t)(void *buf, const char *name, const struct stat *stbuf, off_t off, enum fuse_fill_dir_flags flags)
void fuse_exit(struct fuse *f)
int fuse_clean_cache(struct fuse *fuse)
void fuse_lib_help(struct fuse_args *args)
int fuse_open_channel(const char *mountpoint, const char *options)
struct fuse_session * fuse_get_session(struct fuse *f)
void fuse_unmount(struct fuse *f)
struct fuse_fs * fuse_fs_new(const struct fuse_operations *op, size_t op_size, void *private_data)
void fuse_stop_cleanup_thread(struct fuse *fuse)
void fuse_log(enum fuse_log_level level, const char *fmt,...)
int32_t parallel_direct_writes
int(* mknod)(const char *, mode_t, dev_t)
int(* open)(const char *, struct fuse_file_info *)
int(* readlink)(const char *, char *, size_t)
int(* write)(const char *, const char *, size_t, off_t, struct fuse_file_info *)
int(* fallocate)(const char *, int, off_t, off_t, struct fuse_file_info *)
int(* read)(const char *, char *, size_t, off_t, struct fuse_file_info *)
int(* symlink)(const char *, const char *)
int(* write_buf)(const char *, struct fuse_bufvec *buf, off_t off, struct fuse_file_info *)
int(* release)(const char *, struct fuse_file_info *)
int(* access)(const char *, int)
int(* lock)(const char *, struct fuse_file_info *, int cmd, struct flock *)
int(* fsyncdir)(const char *, int, struct fuse_file_info *)
int(* mkdir)(const char *, mode_t)
int(* chown)(const char *, uid_t, gid_t, struct fuse_file_info *fi)
int(* unlink)(const char *)
int(* flush)(const char *, struct fuse_file_info *)
int(* listxattr)(const char *, char *, size_t)
int(* truncate)(const char *, off_t, struct fuse_file_info *fi)
int(* statfs)(const char *, struct statvfs *)
ssize_t(* copy_file_range)(const char *path_in, struct fuse_file_info *fi_in, off_t offset_in, const char *path_out, struct fuse_file_info *fi_out, off_t offset_out, size_t size, int flags)
int(* create)(const char *, mode_t, struct fuse_file_info *)
int(* utimens)(const char *, const struct timespec tv[2], struct fuse_file_info *fi)
off_t(* lseek)(const char *, off_t off, int whence, struct fuse_file_info *)
int(* getxattr)(const char *, const char *, char *, size_t)
int(* setxattr)(const char *, const char *, const char *, size_t, int)
int(* poll)(const char *, struct fuse_file_info *, struct fuse_pollhandle *ph, unsigned *reventsp)
int(* fsync)(const char *, int, struct fuse_file_info *)
int(* chmod)(const char *, mode_t, struct fuse_file_info *fi)
int(* opendir)(const char *, struct fuse_file_info *)
int(* rmdir)(const char *)
int(* releasedir)(const char *, struct fuse_file_info *)
int(* getattr)(const char *, struct stat *, struct fuse_file_info *fi)
int(* read_buf)(const char *, struct fuse_bufvec **bufp, size_t size, off_t off, struct fuse_file_info *)
int(* link)(const char *, const char *)
int(* flock)(const char *, struct fuse_file_info *, int op)
int(* removexattr)(const char *, const char *)
int(* ioctl)(const char *, unsigned int cmd, void *arg, struct fuse_file_info *, unsigned int flags, void *data)
int(* rename)(const char *, const char *, unsigned int flags)
int(* readdir)(const char *, void *, fuse_fill_dir_t, off_t, struct fuse_file_info *, enum fuse_readdir_flags)
void(* destroy)(void *private_data)
int(* bmap)(const char *, size_t blocksize, uint64_t *idx)