libfuse
fuse_lowlevel.h
Go to the documentation of this file.
1 /*
2  FUSE: Filesystem in Userspace
3  Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
4 
5  This program can be distributed under the terms of the GNU LGPLv2.
6  See the file COPYING.LIB.
7 */
8 
9 #ifndef FUSE_LOWLEVEL_H_
10 #define FUSE_LOWLEVEL_H_
11 
21 #ifndef FUSE_USE_VERSION
22 #error FUSE_USE_VERSION not defined
23 #endif
24 
25 #include "fuse_common.h"
26 
27 #include <utime.h>
28 #include <fcntl.h>
29 #include <sys/types.h>
30 #include <sys/stat.h>
31 #include <sys/statvfs.h>
32 #include <sys/uio.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 /* ----------------------------------------------------------- *
39  * Miscellaneous definitions *
40  * ----------------------------------------------------------- */
41 
43 #define FUSE_ROOT_ID 1
44 
46 typedef uint64_t fuse_ino_t;
47 
49 typedef struct fuse_req *fuse_req_t;
50 
56 struct fuse_session;
57 
68 
79  uint64_t generation;
80 
88  struct stat attr;
89 
94  double attr_timeout;
95 
101 };
102 
111 struct fuse_ctx {
113  uid_t uid;
114 
116  gid_t gid;
117 
119  pid_t pid;
120 
122  mode_t umask;
123 };
124 
125 struct fuse_forget_data {
126  fuse_ino_t ino;
127  uint64_t nlookup;
128 };
129 
130 struct fuse_custom_io {
131  ssize_t (*writev)(int fd, struct iovec *iov, int count, void *userdata);
132  ssize_t (*read)(int fd, void *buf, size_t buf_len, void *userdata);
133  ssize_t (*splice_receive)(int fdin, off_t *offin, int fdout,
134  off_t *offout, size_t len,
135  unsigned int flags, void *userdata);
136  ssize_t (*splice_send)(int fdin, off_t *offin, int fdout,
137  off_t *offout, size_t len,
138  unsigned int flags, void *userdata);
139 };
140 
147  FUSE_LL_EXPIRE_ONLY = (1 << 0),
148 };
149 
150 /* 'to_set' flags in setattr */
151 #define FUSE_SET_ATTR_MODE (1 << 0)
152 #define FUSE_SET_ATTR_UID (1 << 1)
153 #define FUSE_SET_ATTR_GID (1 << 2)
154 #define FUSE_SET_ATTR_SIZE (1 << 3)
155 #define FUSE_SET_ATTR_ATIME (1 << 4)
156 #define FUSE_SET_ATTR_MTIME (1 << 5)
157 #define FUSE_SET_ATTR_ATIME_NOW (1 << 7)
158 #define FUSE_SET_ATTR_MTIME_NOW (1 << 8)
159 #define FUSE_SET_ATTR_FORCE (1 << 9)
160 #define FUSE_SET_ATTR_CTIME (1 << 10)
161 #define FUSE_SET_ATTR_KILL_SUID (1 << 11)
162 #define FUSE_SET_ATTR_KILL_SGID (1 << 12)
163 #define FUSE_SET_ATTR_FILE (1 << 13)
164 #define FUSE_SET_ATTR_KILL_PRIV (1 << 14)
165 #define FUSE_SET_ATTR_OPEN (1 << 15)
166 #define FUSE_SET_ATTR_TIMES_SET (1 << 16)
167 #define FUSE_SET_ATTR_TOUCH (1 << 17)
168 
169 /* ----------------------------------------------------------- *
170  * Request methods and replies *
171  * ----------------------------------------------------------- */
172 
217  void (*init) (void *userdata, struct fuse_conn_info *conn);
218 
230  void (*destroy) (void *userdata);
231 
243  void (*lookup) (fuse_req_t req, fuse_ino_t parent, const char *name);
244 
281  void (*forget) (fuse_req_t req, fuse_ino_t ino, uint64_t nlookup);
282 
302  void (*getattr) (fuse_req_t req, fuse_ino_t ino,
303  struct fuse_file_info *fi);
304 
333  void (*setattr) (fuse_req_t req, fuse_ino_t ino, struct stat *attr,
334  int to_set, struct fuse_file_info *fi);
335 
346  void (*readlink) (fuse_req_t req, fuse_ino_t ino);
347 
364  void (*mknod) (fuse_req_t req, fuse_ino_t parent, const char *name,
365  mode_t mode, dev_t rdev);
366 
379  void (*mkdir) (fuse_req_t req, fuse_ino_t parent, const char *name,
380  mode_t mode);
381 
397  void (*unlink) (fuse_req_t req, fuse_ino_t parent, const char *name);
398 
414  void (*rmdir) (fuse_req_t req, fuse_ino_t parent, const char *name);
415 
428  void (*symlink) (fuse_req_t req, const char *link, fuse_ino_t parent,
429  const char *name);
430 
460  void (*rename) (fuse_req_t req, fuse_ino_t parent, const char *name,
461  fuse_ino_t newparent, const char *newname,
462  unsigned int flags);
463 
476  void (*link) (fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent,
477  const char *newname);
478 
535  void (*open) (fuse_req_t req, fuse_ino_t ino,
536  struct fuse_file_info *fi);
537 
563  void (*read) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
564  struct fuse_file_info *fi);
565 
592  void (*write) (fuse_req_t req, fuse_ino_t ino, const char *buf,
593  size_t size, off_t off, struct fuse_file_info *fi);
594 
633  void (*flush) (fuse_req_t req, fuse_ino_t ino,
634  struct fuse_file_info *fi);
635 
661  void (*release) (fuse_req_t req, fuse_ino_t ino,
662  struct fuse_file_info *fi);
663 
683  void (*fsync) (fuse_req_t req, fuse_ino_t ino, int datasync,
684  struct fuse_file_info *fi);
685 
708  void (*opendir) (fuse_req_t req, fuse_ino_t ino,
709  struct fuse_file_info *fi);
710 
754  void (*readdir) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
755  struct fuse_file_info *fi);
756 
773  void (*releasedir) (fuse_req_t req, fuse_ino_t ino,
774  struct fuse_file_info *fi);
775 
798  void (*fsyncdir) (fuse_req_t req, fuse_ino_t ino, int datasync,
799  struct fuse_file_info *fi);
800 
811  void (*statfs) (fuse_req_t req, fuse_ino_t ino);
812 
824  void (*setxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
825  const char *value, size_t size, int flags);
826 
855  void (*getxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
856  size_t size);
857 
886  void (*listxattr) (fuse_req_t req, fuse_ino_t ino, size_t size);
887 
903  void (*removexattr) (fuse_req_t req, fuse_ino_t ino, const char *name);
904 
925  void (*access) (fuse_req_t req, fuse_ino_t ino, int mask);
926 
954  void (*create) (fuse_req_t req, fuse_ino_t parent, const char *name,
955  mode_t mode, struct fuse_file_info *fi);
956 
969  void (*getlk) (fuse_req_t req, fuse_ino_t ino,
970  struct fuse_file_info *fi, struct flock *lock);
971 
994  void (*setlk) (fuse_req_t req, fuse_ino_t ino,
995  struct fuse_file_info *fi,
996  struct flock *lock, int sleep);
997 
1018  void (*bmap) (fuse_req_t req, fuse_ino_t ino, size_t blocksize,
1019  uint64_t idx);
1020 
1021 #if FUSE_USE_VERSION < 35
1022  void (*ioctl) (fuse_req_t req, fuse_ino_t ino, int cmd,
1023  void *arg, struct fuse_file_info *fi, unsigned flags,
1024  const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1025 #else
1054  void (*ioctl) (fuse_req_t req, fuse_ino_t ino, unsigned int cmd,
1055  void *arg, struct fuse_file_info *fi, unsigned flags,
1056  const void *in_buf, size_t in_bufsz, size_t out_bufsz);
1057 #endif
1058 
1088  void (*poll) (fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi,
1089  struct fuse_pollhandle *ph);
1090 
1118  void (*write_buf) (fuse_req_t req, fuse_ino_t ino,
1119  struct fuse_bufvec *bufv, off_t off,
1120  struct fuse_file_info *fi);
1121 
1134  void (*retrieve_reply) (fuse_req_t req, void *cookie, fuse_ino_t ino,
1135  off_t offset, struct fuse_bufvec *bufv);
1136 
1148  void (*forget_multi) (fuse_req_t req, size_t count,
1149  struct fuse_forget_data *forgets);
1150 
1166  void (*flock) (fuse_req_t req, fuse_ino_t ino,
1167  struct fuse_file_info *fi, int op);
1168 
1189  void (*fallocate) (fuse_req_t req, fuse_ino_t ino, int mode,
1190  off_t offset, off_t length, struct fuse_file_info *fi);
1191 
1217  void (*readdirplus) (fuse_req_t req, fuse_ino_t ino, size_t size, off_t off,
1218  struct fuse_file_info *fi);
1219 
1250  void (*copy_file_range) (fuse_req_t req, fuse_ino_t ino_in,
1251  off_t off_in, struct fuse_file_info *fi_in,
1252  fuse_ino_t ino_out, off_t off_out,
1253  struct fuse_file_info *fi_out, size_t len,
1254  int flags);
1255 
1274  void (*lseek) (fuse_req_t req, fuse_ino_t ino, off_t off, int whence,
1275  struct fuse_file_info *fi);
1276 };
1277 
1299 int fuse_reply_err(fuse_req_t req, int err);
1300 
1311 void fuse_reply_none(fuse_req_t req);
1312 
1326 int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e);
1327 
1345 int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e,
1346  const struct fuse_file_info *fi);
1347 
1359 int fuse_reply_attr(fuse_req_t req, const struct stat *attr,
1360  double attr_timeout);
1361 
1372 int fuse_reply_readlink(fuse_req_t req, const char *link);
1373 
1387 int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi);
1388 
1399 int fuse_reply_write(fuse_req_t req, size_t count);
1400 
1412 int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size);
1413 
1457 int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv,
1458  enum fuse_buf_copy_flags flags);
1459 
1471 int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count);
1472 
1483 int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf);
1484 
1495 int fuse_reply_xattr(fuse_req_t req, size_t count);
1496 
1507 int fuse_reply_lock(fuse_req_t req, const struct flock *lock);
1508 
1519 int fuse_reply_bmap(fuse_req_t req, uint64_t idx);
1520 
1521 /* ----------------------------------------------------------- *
1522  * Filling a buffer in readdir *
1523  * ----------------------------------------------------------- */
1524 
1552 size_t fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize,
1553  const char *name, const struct stat *stbuf,
1554  off_t off);
1555 
1569 size_t fuse_add_direntry_plus(fuse_req_t req, char *buf, size_t bufsize,
1570  const char *name,
1571  const struct fuse_entry_param *e, off_t off);
1572 
1589  const struct iovec *in_iov, size_t in_count,
1590  const struct iovec *out_iov, size_t out_count);
1591 
1603 int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size);
1604 
1616 int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov,
1617  int count);
1618 
1625 int fuse_reply_poll(fuse_req_t req, unsigned revents);
1626 
1637 int fuse_reply_lseek(fuse_req_t req, off_t off);
1638 
1639 /* ----------------------------------------------------------- *
1640  * Notification *
1641  * ----------------------------------------------------------- */
1642 
1650 int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph);
1651 
1675 int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino,
1676  off_t off, off_t len);
1677 
1703 int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent,
1704  const char *name, size_t namelen);
1705 
1733 int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent,
1734  const char *name, size_t namelen,
1735  enum fuse_expire_flags flags);
1736 
1765 int fuse_lowlevel_notify_delete(struct fuse_session *se,
1766  fuse_ino_t parent, fuse_ino_t child,
1767  const char *name, size_t namelen);
1768 
1794 int fuse_lowlevel_notify_store(struct fuse_session *se, fuse_ino_t ino,
1795  off_t offset, struct fuse_bufvec *bufv,
1796  enum fuse_buf_copy_flags flags);
1826 int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino,
1827  size_t size, off_t offset, void *cookie);
1828 
1829 
1830 /* ----------------------------------------------------------- *
1831  * Utility functions *
1832  * ----------------------------------------------------------- */
1833 
1840 void *fuse_req_userdata(fuse_req_t req);
1841 
1851 const struct fuse_ctx *fuse_req_ctx(fuse_req_t req);
1852 
1872 int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[]);
1873 
1880 typedef void (*fuse_interrupt_func_t)(fuse_req_t req, void *data);
1881 
1894  void *data);
1895 
1903 
1904 
1905 /* ----------------------------------------------------------- *
1906  * Inquiry functions *
1907  * ----------------------------------------------------------- */
1908 
1912 void fuse_lowlevel_version(void);
1913 
1919 void fuse_lowlevel_help(void);
1920 
1924 void fuse_cmdline_help(void);
1925 
1926 /* ----------------------------------------------------------- *
1927  * Filesystem setup & teardown *
1928  * ----------------------------------------------------------- */
1929 
1936  int singlethread;
1937  int foreground;
1938  int debug;
1939  int nodefault_subtype;
1940  char *mountpoint;
1941  int show_version;
1942  int show_help;
1943  int clone_fd;
1944  unsigned int max_idle_threads; /* discouraged, due to thread
1945  * destruct overhead */
1946 
1947  /* Added in libfuse-3.12 */
1948  unsigned int max_threads;
1949 };
1950 
1969 #if (defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
1970 int fuse_parse_cmdline(struct fuse_args *args,
1971  struct fuse_cmdline_opts *opts);
1972 #else
1973 #if FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
1974 int fuse_parse_cmdline_30(struct fuse_args *args,
1975  struct fuse_cmdline_opts *opts);
1976 #define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_30(args, opts)
1977 #else
1978 int fuse_parse_cmdline_312(struct fuse_args *args,
1979  struct fuse_cmdline_opts *opts);
1980 #define fuse_parse_cmdline(args, opts) fuse_parse_cmdline_312(args, opts)
1981 #endif
1982 #endif
1983 
2012 struct fuse_session *fuse_session_new(struct fuse_args *args,
2013  const struct fuse_lowlevel_ops *op,
2014  size_t op_size, void *userdata);
2015 
2043 int fuse_session_custom_io(struct fuse_session *se,
2044  const struct fuse_custom_io *io, int fd);
2045 
2054 int fuse_session_mount(struct fuse_session *se, const char *mountpoint);
2055 
2078 int fuse_session_loop(struct fuse_session *se);
2079 
2080 #if FUSE_USE_VERSION < 32
2081  int fuse_session_loop_mt_31(struct fuse_session *se, int clone_fd);
2082  #define fuse_session_loop_mt(se, clone_fd) fuse_session_loop_mt_31(se, clone_fd)
2083 #elif FUSE_USE_VERSION < FUSE_MAKE_VERSION(3, 12)
2084  int fuse_session_loop_mt_32(struct fuse_session *se, struct fuse_loop_config *config);
2085  #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_32(se, config)
2086 #else
2087  #if (defined(LIBFUSE_BUILT_WITH_VERSIONED_SYMBOLS))
2099  int fuse_session_loop_mt(struct fuse_session *se, struct fuse_loop_config *config);
2100  #else
2101  int fuse_session_loop_mt_312(struct fuse_session *se, struct fuse_loop_config *config);
2102  #define fuse_session_loop_mt(se, config) fuse_session_loop_mt_312(se, config)
2103  #endif
2104 #endif
2105 
2115 void fuse_session_exit(struct fuse_session *se);
2116 
2122 void fuse_session_reset(struct fuse_session *se);
2123 
2130 int fuse_session_exited(struct fuse_session *se);
2131 
2156 void fuse_session_unmount(struct fuse_session *se);
2157 
2163 void fuse_session_destroy(struct fuse_session *se);
2164 
2165 /* ----------------------------------------------------------- *
2166  * Custom event loop support *
2167  * ----------------------------------------------------------- */
2168 
2183 int fuse_session_fd(struct fuse_session *se);
2184 
2193 void fuse_session_process_buf(struct fuse_session *se,
2194  const struct fuse_buf *buf);
2195 
2207 int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf);
2208 
2209 #ifdef __cplusplus
2210 }
2211 #endif
2212 
2213 #endif /* FUSE_LOWLEVEL_H_ */
fuse_buf_copy_flags
Definition: fuse_common.h:696
void fuse_session_destroy(struct fuse_session *se)
fuse_expire_flags
int fuse_reply_data(fuse_req_t req, struct fuse_bufvec *bufv, enum fuse_buf_copy_flags flags)
int fuse_reply_lock(fuse_req_t req, const struct flock *lock)
int fuse_reply_open(fuse_req_t req, const struct fuse_file_info *fi)
void fuse_session_exit(struct fuse_session *se)
void(* fuse_interrupt_func_t)(fuse_req_t req, void *data)
int fuse_reply_poll(fuse_req_t req, unsigned revents)
int fuse_reply_err(fuse_req_t req, int err)
int fuse_reply_buf(fuse_req_t req, const char *buf, size_t size)
struct fuse_req * fuse_req_t
Definition: fuse_lowlevel.h:49
size_t fuse_add_direntry_plus(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct fuse_entry_param *e, off_t off)
int fuse_reply_ioctl_iov(fuse_req_t req, int result, const struct iovec *iov, int count)
int fuse_lowlevel_notify_delete(struct fuse_session *se, fuse_ino_t parent, fuse_ino_t child, const char *name, size_t namelen)
void fuse_session_process_buf(struct fuse_session *se, const struct fuse_buf *buf)
int fuse_session_exited(struct fuse_session *se)
int fuse_session_fd(struct fuse_session *se)
int fuse_req_interrupted(fuse_req_t req)
int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[])
int fuse_lowlevel_notify_retrieve(struct fuse_session *se, fuse_ino_t ino, size_t size, off_t offset, void *cookie)
int fuse_reply_readlink(fuse_req_t req, const char *link)
int fuse_session_loop(struct fuse_session *se)
Definition: fuse_loop.c:19
int fuse_reply_iov(fuse_req_t req, const struct iovec *iov, int count)
int fuse_reply_bmap(fuse_req_t req, uint64_t idx)
int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e)
void fuse_session_unmount(struct fuse_session *se)
void fuse_cmdline_help(void)
Definition: helper.c:130
void fuse_reply_none(fuse_req_t req)
int fuse_reply_ioctl_retry(fuse_req_t req, const struct iovec *in_iov, size_t in_count, const struct iovec *out_iov, size_t out_count)
void fuse_lowlevel_help(void)
int fuse_lowlevel_notify_inval_inode(struct fuse_session *se, fuse_ino_t ino, off_t off, off_t len)
struct fuse_session * fuse_session_new(struct fuse_args *args, const struct fuse_lowlevel_ops *op, size_t op_size, void *userdata)
int fuse_reply_statfs(fuse_req_t req, const struct statvfs *stbuf)
int fuse_reply_write(fuse_req_t req, size_t count)
int fuse_session_receive_buf(struct fuse_session *se, struct fuse_buf *buf)
int fuse_session_mount(struct fuse_session *se, const char *mountpoint)
int fuse_parse_cmdline_30(struct fuse_args *args, struct fuse_cmdline_opts *opts)
Definition: helper.c:237
void * fuse_req_userdata(fuse_req_t req)
int fuse_lowlevel_notify_expire_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen, enum fuse_expire_flags flags)
int fuse_lowlevel_notify_poll(struct fuse_pollhandle *ph)
int fuse_lowlevel_notify_inval_entry(struct fuse_session *se, fuse_ino_t parent, const char *name, size_t namelen)
void fuse_req_interrupt_func(fuse_req_t req, fuse_interrupt_func_t func, void *data)
void fuse_session_reset(struct fuse_session *se)
int fuse_session_custom_io(struct fuse_session *se, const struct fuse_custom_io *io, int fd)
int fuse_reply_create(fuse_req_t req, const struct fuse_entry_param *e, const struct fuse_file_info *fi)
int fuse_reply_lseek(fuse_req_t req, off_t off)
void fuse_lowlevel_version(void)
uint64_t fuse_ino_t
Definition: fuse_lowlevel.h:46
size_t fuse_add_direntry(fuse_req_t req, char *buf, size_t bufsize, const char *name, const struct stat *stbuf, off_t off)
const struct fuse_ctx * fuse_req_ctx(fuse_req_t req)
int fuse_reply_attr(fuse_req_t req, const struct stat *attr, double attr_timeout)
int fuse_reply_ioctl(fuse_req_t req, int result, const void *buf, size_t size)
int fuse_lowlevel_notify_store(struct fuse_session *se, fuse_ino_t ino, off_t offset, struct fuse_bufvec *bufv, enum fuse_buf_copy_flags flags)
int fuse_reply_xattr(fuse_req_t req, size_t count)
size_t off
Definition: fuse_common.h:796
size_t count
Definition: fuse_common.h:786
mode_t umask
Definition: fuse_lowlevel.h:59
double entry_timeout
fuse_ino_t ino
Definition: fuse_lowlevel.h:67
uint64_t generation
Definition: fuse_lowlevel.h:79
double attr_timeout
Definition: fuse_lowlevel.h:94
struct stat attr
Definition: fuse_lowlevel.h:88
void(* flock)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, int op)
void(* write)(fuse_req_t req, fuse_ino_t ino, const char *buf, size_t size, off_t off, struct fuse_file_info *fi)
void(* lseek)(fuse_req_t req, fuse_ino_t ino, off_t off, int whence, struct fuse_file_info *fi)
void(* listxattr)(fuse_req_t req, fuse_ino_t ino, size_t size)
void(* removexattr)(fuse_req_t req, fuse_ino_t ino, const char *name)
void(* forget_multi)(fuse_req_t req, size_t count, struct fuse_forget_data *forgets)
void(* retrieve_reply)(fuse_req_t req, void *cookie, fuse_ino_t ino, off_t offset, struct fuse_bufvec *bufv)
void(* create)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode, struct fuse_file_info *fi)
void(* mkdir)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode)
void(* symlink)(fuse_req_t req, const char *link, fuse_ino_t parent, const char *name)
void(* write_buf)(fuse_req_t req, fuse_ino_t ino, struct fuse_bufvec *bufv, off_t off, struct fuse_file_info *fi)
void(* rmdir)(fuse_req_t req, fuse_ino_t parent, const char *name)
void(* link)(fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent, const char *newname)
void(* rename)(fuse_req_t req, fuse_ino_t parent, const char *name, fuse_ino_t newparent, const char *newname, unsigned int flags)
void(* copy_file_range)(fuse_req_t req, fuse_ino_t ino_in, off_t off_in, struct fuse_file_info *fi_in, fuse_ino_t ino_out, off_t off_out, struct fuse_file_info *fi_out, size_t len, int flags)
void(* poll)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct fuse_pollhandle *ph)
void(* opendir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* mknod)(fuse_req_t req, fuse_ino_t parent, const char *name, mode_t mode, dev_t rdev)
void(* fallocate)(fuse_req_t req, fuse_ino_t ino, int mode, off_t offset, off_t length, struct fuse_file_info *fi)
void(* setattr)(fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, struct fuse_file_info *fi)
void(* getlk)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct flock *lock)
void(* fsync)(fuse_req_t req, fuse_ino_t ino, int datasync, struct fuse_file_info *fi)
void(* destroy)(void *userdata)
void(* forget)(fuse_req_t req, fuse_ino_t ino, uint64_t nlookup)
void(* getattr)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* ioctl)(fuse_req_t req, fuse_ino_t ino, unsigned int cmd, void *arg, struct fuse_file_info *fi, unsigned flags, const void *in_buf, size_t in_bufsz, size_t out_bufsz)
void(* open)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* getxattr)(fuse_req_t req, fuse_ino_t ino, const char *name, size_t size)
void(* fsyncdir)(fuse_req_t req, fuse_ino_t ino, int datasync, struct fuse_file_info *fi)
void(* init)(void *userdata, struct fuse_conn_info *conn)
void(* read)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
void(* setxattr)(fuse_req_t req, fuse_ino_t ino, const char *name, const char *value, size_t size, int flags)
void(* release)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* access)(fuse_req_t req, fuse_ino_t ino, int mask)
void(* releasedir)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* bmap)(fuse_req_t req, fuse_ino_t ino, size_t blocksize, uint64_t idx)
void(* readlink)(fuse_req_t req, fuse_ino_t ino)
void(* lookup)(fuse_req_t req, fuse_ino_t parent, const char *name)
void(* statfs)(fuse_req_t req, fuse_ino_t ino)
void(* readdir)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
void(* setlk)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi, struct flock *lock, int sleep)
void(* readdirplus)(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi)
void(* flush)(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi)
void(* unlink)(fuse_req_t req, fuse_ino_t parent, const char *name)