fuse
|
Data Structures | |
struct | fuse_file_info |
struct | fuse_conn_info |
struct | fuse_buf |
struct | fuse_bufvec |
Macros | |
#define | FUSE_MAJOR_VERSION 3 |
#define | FUSE_MINOR_VERSION 0 |
#define | FUSE_CAP_ASYNC_READ (1 << 0) |
#define | FUSE_IOCTL_COMPAT (1 << 0) |
Enumerations | |
enum | fuse_buf_flags { FUSE_BUF_IS_FD = (1 << 1), FUSE_BUF_FD_SEEK = (1 << 2), FUSE_BUF_FD_RETRY = (1 << 3) } |
enum | fuse_buf_copy_flags { FUSE_BUF_NO_SPLICE = (1 << 1), FUSE_BUF_FORCE_SPLICE = (1 << 2), FUSE_BUF_SPLICE_MOVE = (1 << 3), FUSE_BUF_SPLICE_NONBLOCK = (1 << 4) } |
Functions | |
int | fuse_daemonize (int foreground) |
int | fuse_version (void) |
const char * | fuse_pkgversion (void) |
void | fuse_pollhandle_destroy (struct fuse_pollhandle *ph) |
size_t | fuse_buf_size (const struct fuse_bufvec *bufv) |
ssize_t | fuse_buf_copy (struct fuse_bufvec *dst, struct fuse_bufvec *src, enum fuse_buf_copy_flags flags) |
int | fuse_set_signal_handlers (struct fuse_session *se) |
void | fuse_remove_signal_handlers (struct fuse_session *se) |
#define FUSE_CAP_ASYNC_READ (1 << 0) |
Capability bits for 'fuse_conn_info.capable' and 'fuse_conn_info.want'
FUSE_CAP_ASYNC_READ: filesystem supports asynchronous read requests FUSE_CAP_POSIX_LOCKS: filesystem supports "remote" locking FUSE_CAP_ATOMIC_O_TRUNC: filesystem handles the O_TRUNC open flag FUSE_CAP_EXPORT_SUPPORT: filesystem handles lookups of "." and ".." FUSE_CAP_BIG_WRITES: filesystem can handle write size larger than 4kB FUSE_CAP_DONT_MASK: don't apply umask to file mode on create operations FUSE_CAP_SPLICE_WRITE: ability to use splice() to write to the fuse device FUSE_CAP_SPLICE_MOVE: ability to move data to the fuse device with splice() FUSE_CAP_SPLICE_READ: ability to use splice() to read from the fuse device FUSE_CAP_IOCTL_DIR: ioctl support on directories FUSE_CAP_AUTO_INVAL_DATA: automatically invalidate cached pages FUSE_CAP_DO_READDIRPLUS: do READDIRPLUS (READDIR+LOOKUP in one) FUSE_CAP_READDIRPLUS_AUTO: adaptive readdirplus FUSE_CAP_ASYNC_DIO: asynchronous direct I/O submission FUSE_CAP_WRITEBACK_CACHE: use writeback cache for buffered writes FUSE_CAP_NO_OPEN_SUPPORT: support zero-message opens
#define FUSE_IOCTL_COMPAT (1 << 0) |
Ioctl flags
FUSE_IOCTL_COMPAT: 32bit compat ioctl on 64bit machine FUSE_IOCTL_UNRESTRICTED: not restricted to well-formed ioctls, retry allowed FUSE_IOCTL_RETRY: retry with new iovecs FUSE_IOCTL_DIR: is a directory
FUSE_IOCTL_MAX_IOV: maximum of in_iovecs + out_iovecs
#define FUSE_MAJOR_VERSION 3 |
Major version of FUSE library interface
#define FUSE_MINOR_VERSION 0 |
Minor version of FUSE library interface
enum fuse_buf_copy_flags |
Buffer copy flags
enum fuse_buf_flags |
Buffer flags
ssize_t fuse_buf_copy | ( | struct fuse_bufvec * | dst, |
struct fuse_bufvec * | src, | ||
enum fuse_buf_copy_flags | flags | ||
) |
Copy data from one buffer vector to another
dst | destination buffer vector |
src | source buffer vector |
flags | flags controlling the copy |
size_t fuse_buf_size | ( | const struct fuse_bufvec * | bufv | ) |
Get total size of data in a fuse buffer vector
bufv | buffer vector |
int fuse_daemonize | ( | int | foreground | ) |
Go into the background
foreground | if true, stay in the foreground |
const char* fuse_pkgversion | ( | void | ) |
Get the full package version string of the library
void fuse_pollhandle_destroy | ( | struct fuse_pollhandle * | ph | ) |
Destroy poll handle
ph | the poll handle |
void fuse_remove_signal_handlers | ( | struct fuse_session * | se | ) |
Restore default signal handlers
Resets global session. After this fuse_set_signal_handlers() may be called again.
se | the same session as given in fuse_set_signal_handlers() |
See also: fuse_set_signal_handlers()
int fuse_set_signal_handlers | ( | struct fuse_session * | se | ) |
Exit session on HUP, TERM and INT signals and ignore PIPE signal
Stores session in a global variable. May only be called once per process until fuse_remove_signal_handlers() is called.
Once either of the POSIX signals arrives, the exit_handler() in fuse_signals.c is called:
se | the session to exit |
See also: fuse_remove_signal_handlers()
int fuse_version | ( | void | ) |
Get the version of the library