FUSE_MOUNT(3) | Library Functions Manual | FUSE_MOUNT(3) |
fuse_mount
,
fuse_unmount
— mount or
dismount a FUSE file system
#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
()
will attempt to unmount the file system mounted at dir
by calling the unmount(2) system call.
If this is successful, the kernel will send the FBT_DESTROY message to the
file system, causing fuse_loop(3) to
terminate. There is no way to determine whether this call was
successful.
Only the super user can mount and unmount FUSE file systems.
fuse_main
() will return NULL if the file
system cannot be mounted.
fuse_mount
() will fail 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>
July 8, 2018 | OpenBSD-current |