23 #include <sys/types.h> 25 #include <sys/statvfs.h> 83 const struct stat *stbuf, off_t off,
253 double ac_attr_timeout;
311 int (*getattr) (
const char *,
struct stat *,
struct fuse_file_info *fi);
321 int (*readlink) (
const char *,
char *, size_t);
329 int (*mknod) (
const char *, mode_t, dev_t);
337 int (*mkdir) (
const char *, mode_t);
340 int (*unlink) (
const char *);
343 int (*rmdir) (
const char *);
346 int (*symlink) (
const char *,
const char *);
357 int (*rename) (
const char *,
const char *,
unsigned int flags);
360 int (*link) (
const char *,
const char *);
377 int (*chown) (
const char *, uid_t, gid_t,
struct fuse_file_info *fi);
448 int (*read) (
const char *,
char *, size_t, off_t,
460 int (*write) (
const char *,
const char *, size_t, off_t,
467 int (*statfs) (
const char *,
struct statvfs *);
514 int (*setxattr) (
const char *,
const char *,
const char *, size_t, int);
517 int (*getxattr) (
const char *,
const char *,
char *, size_t);
520 int (*listxattr) (
const char *,
char *, size_t);
523 int (*removexattr) (
const char *,
const char *);
580 void (*destroy) (
void *private_data);
591 int (*access) (
const char *, int);
650 int (*utimens) (
const char *,
const struct timespec tv[2],
651 struct fuse_file_info *fi);
659 int (*bmap) (
const char *,
size_t blocksize, uint64_t *idx);
674 int (*ioctl) (
const char *,
int cmd,
void *arg,
675 struct fuse_file_info *,
unsigned int flags,
void *data);
692 int (*poll) (
const char *,
struct fuse_file_info *,
693 struct fuse_pollhandle *ph,
unsigned *reventsp);
705 struct fuse_file_info *);
721 int (*read_buf) (
const char *,
struct fuse_bufvec **bufp,
722 size_t size, off_t
off,
struct fuse_file_info *);
741 int (*flock) (
const char *,
struct fuse_file_info *,
int op);
751 int (*fallocate) (
const char *, int, off_t, off_t,
752 struct fuse_file_info *);
829 #define fuse_main(argc, argv, op, private_data) \ 830 fuse_main_real(argc, argv, op, sizeof(*(op)), private_data) 876 #if FUSE_USE_VERSION == 30 878 size_t op_size,
void *private_data);
879 #define fuse_new(args, op, size, data) fuse_new_30(args, op, size, data) 882 size_t op_size,
void *private_data);
893 int fuse_mount(
struct fuse *f,
const char *mountpoint);
972 #if FUSE_USE_VERSION < 32 974 #define fuse_loop_mt(f, clone_fd) fuse_loop_mt_31(f, clone_fd) 1085 int fuse_fs_getattr(
struct fuse_fs *fs,
const char *path,
struct stat *buf,
1087 int fuse_fs_rename(
struct fuse_fs *fs,
const char *oldpath,
1088 const char *newpath,
unsigned int flags);
1089 int fuse_fs_unlink(
struct fuse_fs *fs,
const char *path);
1090 int fuse_fs_rmdir(
struct fuse_fs *fs,
const char *path);
1091 int fuse_fs_symlink(
struct fuse_fs *fs,
const char *linkname,
1093 int fuse_fs_link(
struct fuse_fs *fs,
const char *oldpath,
const char *newpath);
1094 int fuse_fs_release(
struct fuse_fs *fs,
const char *path,
1096 int fuse_fs_open(
struct fuse_fs *fs,
const char *path,
1098 int fuse_fs_read(
struct fuse_fs *fs,
const char *path,
char *buf,
size_t size,
1100 int fuse_fs_read_buf(
struct fuse_fs *fs,
const char *path,
1101 struct fuse_bufvec **bufp,
size_t size, off_t off,
1103 int fuse_fs_write(
struct fuse_fs *fs,
const char *path,
const char *buf,
1105 int fuse_fs_write_buf(
struct fuse_fs *fs,
const char *path,
1108 int fuse_fs_fsync(
struct fuse_fs *fs,
const char *path,
int datasync,
1110 int fuse_fs_flush(
struct fuse_fs *fs,
const char *path,
1112 int fuse_fs_statfs(
struct fuse_fs *fs,
const char *path,
struct statvfs *buf);
1113 int fuse_fs_opendir(
struct fuse_fs *fs,
const char *path,
1115 int fuse_fs_readdir(
struct fuse_fs *fs,
const char *path,
void *buf,
1118 int fuse_fs_fsyncdir(
struct fuse_fs *fs,
const char *path,
int datasync,
1120 int fuse_fs_releasedir(
struct fuse_fs *fs,
const char *path,
1122 int fuse_fs_create(
struct fuse_fs *fs,
const char *path, mode_t mode,
1124 int fuse_fs_lock(
struct fuse_fs *fs,
const char *path,
1126 int fuse_fs_flock(
struct fuse_fs *fs,
const char *path,
1128 int fuse_fs_chmod(
struct fuse_fs *fs,
const char *path, mode_t mode,
1130 int fuse_fs_chown(
struct fuse_fs *fs,
const char *path, uid_t uid, gid_t gid,
1132 int fuse_fs_truncate(
struct fuse_fs *fs,
const char *path, off_t size,
1134 int fuse_fs_utimens(
struct fuse_fs *fs,
const char *path,
1136 int fuse_fs_access(
struct fuse_fs *fs,
const char *path,
int mask);
1137 int fuse_fs_readlink(
struct fuse_fs *fs,
const char *path,
char *buf,
1139 int fuse_fs_mknod(
struct fuse_fs *fs,
const char *path, mode_t mode,
1141 int fuse_fs_mkdir(
struct fuse_fs *fs,
const char *path, mode_t mode);
1142 int fuse_fs_setxattr(
struct fuse_fs *fs,
const char *path,
const char *name,
1143 const char *value,
size_t size,
int flags);
1144 int fuse_fs_getxattr(
struct fuse_fs *fs,
const char *path,
const char *name,
1145 char *value,
size_t size);
1146 int fuse_fs_listxattr(
struct fuse_fs *fs,
const char *path,
char *list,
1148 int fuse_fs_removexattr(
struct fuse_fs *fs,
const char *path,
1150 int fuse_fs_bmap(
struct fuse_fs *fs,
const char *path,
size_t blocksize,
1152 int fuse_fs_ioctl(
struct fuse_fs *fs,
const char *path,
int cmd,
void *arg,
1154 int fuse_fs_poll(
struct fuse_fs *fs,
const char *path,
1156 unsigned *reventsp);
1157 int fuse_fs_fallocate(
struct fuse_fs *fs,
const char *path,
int mode,
1159 void fuse_fs_init(
struct fuse_fs *fs,
struct fuse_conn_info *conn,
1161 void fuse_fs_destroy(
struct fuse_fs *fs);
1163 int fuse_notify_poll(
struct fuse_pollhandle *ph);
1179 void *private_data);
1195 typedef struct fuse_fs *(*fuse_module_factory_t)(
struct fuse_args *args,
1196 struct fuse_fs *fs[]);
1207 #define FUSE_REGISTER_MODULE(name_, factory_) \ 1208 fuse_module_factory_t fuse_module_ ## name_ ## _factory = factory_
int fuse_loop_mt_31(struct fuse *f, int clone_fd)
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_getgroups(int size, gid_t list[])
int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, size_t op_size, void *private_data)
int fuse_start_cleanup_thread(struct fuse *fuse)
int fuse_invalidate_path(struct fuse *f, const char *path)
void fuse_lib_help(struct fuse_args *args)
struct fuse_fs * fuse_fs_new(const struct fuse_operations *op, size_t op_size, void *private_data)
void fuse_destroy(struct fuse *f)
void fuse_stop_cleanup_thread(struct fuse *fuse)
int fuse_clean_cache(struct fuse *fuse)
struct fuse_session * fuse_get_session(struct fuse *f)
int fuse_loop(struct fuse *f)
struct fuse_context * fuse_get_context(void)
int fuse_interrupted(void)
int fuse_mount(struct fuse *f, const char *mountpoint)
struct fuse * fuse_new(struct fuse_args *args, const struct fuse_operations *op, size_t op_size, void *private_data)
void fuse_unmount(struct fuse *f)