next up previous contents index
Next: 14 FreeBSD Math Library: Up: 13.6 Initialization Functions Previous: 13.6.4 fs_release: Release root

13.6.5 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 C library function doing the lookup (fs_lookup).

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.


University of Utah Flux Research Group