fs_mount
,
fs_unmount
, — simplified
file system mounting
PDEL Library (libpdel, -lpdel)
#include
<pdel/sys/fs_mount.h>
int
fs_mount
(const
char *path, int
flags);
int
fs_unmount
(const
char *path, int
flags);
These functions provide a simplified interface to
mount(2)
and
unmount(2).
fs_mount
()
attempts to mount the filesystem on the directory
path. The device to be mounted must be described in
/etc/fstab. The flags are
passed unchanged to
mount(2).
fs_ummount
()
attempts to unmount the filesystem mounted on the directory
path. The flags are passed
unchanged to
unmount(2).
fs_mount
() and
fs_unmount
() return 0 if successful, otherwise -1 is
returned and errno is set accordingly; see
mount(2)
for the possible values for errno.
The PDEL library was developed at Packet Design, LLC.
http://www.packetdesign.com/
Archie Cobbs
⟨archie@freebsd.org⟩