next up previous contents index
Next: 18 FreeBSD C Library: Up: 17.5 Extended API functions Previous: 17.5 Extended API functions

17.5.1 fs_mount, fs_unmount: Compose file system name spaces

     

SYNOPSIS

#include <oskit/c/fs.h>

oskit_error_t fs_mount(const char *path, oskit_file_t *subtree);
oskit_error_t fs_unmount(const char *path);

DESCRIPTION

BSD-like mount and unmount functions which the client can use to build its file system namespace out of multiple file systems.

Note that the underlying oskit_dir COM interface doesn't support mount points, so crossing mount points while traversing the file system space is implemented in the filesystem namespace COM object (see Section 20).

PARAMETERS

path
A valid pathname in the current file system space where the file system should be added or removed.
subtree
The root of the file system to be added. A reference to subtree is acquired.

RETURNS

Returns zero on success, or an appropriate error code.


Utah Flux Research Group