| FUSE_MOUNT(3) | Library Functions Manual | FUSE_MOUNT(3) |
fuse_mount,
fuse_unmount — mount or
dismount a FUSE file system
library “libfuse”
#include <fuse.h>
struct fuse_chan *
fuse_mount(const
char *dir, struct
fuse_args *args);
void
fuse_unmount(const
char *dir, struct
fuse_chan *ch);
The
fuse_mount()
function calls the mount(2) system call to graft the FUSE
file system on to the file system tree at the point
dir. args are FUSE specific
mount options as documented by mount(2).
The following mount options can be specified by preceding them
with -o, either individually or together separated
by a comma.
-r.fuse_unmount()
closes the FUSE device and attempts to unmount the file system mounted at
dir by calling the unmount(2) system
call. To avoid a deadlock, the kernel will not send the
FBT_DESTROY message to the file system. There is no
way to determine whether this call was successful.
Only the super user can mount and unmount FUSE file systems.
fuse_main() returns
NULL if the file system cannot be mounted.
fuse_mount() fails when one of the
following occurs: dir does not exist or is not a
directory. The fuse device cannot be opened for reading and writing. There
was an error parsing the options specified by args.
The file system could not be mounted.
The fuse_mount() and
fuse_unmount() functions conforms to FUSE 2.6.
The fuse_mount() and
fuse_unmount() functions first appeared in
OpenBSD 5.4.
Sylvestre Gallon
<ccna.syl@gmail.com>
Helg Bredow
<helg@openbsd.org>
| September 23, 2025 | Debian |