next up previous contents index
Next: 13.4.2 _exit: terminate normally Up: 13.4 Extended API functions Previous: 13.4 Extended API functions

13.4.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 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.



Utah Flux Research Group