#include <oskit/c/fs.h>oskit_error_t fs_init(oskit_dir_t *root);
Provide a root directory defining the file system namespace. The current directory will initially also be this root directory. Note that the call is equivalent to fs_mount("/", root).A typical call sequence in a standalone application that uses the BMOD (section 10.20) file system might be as follows:
fs_init(oskit_bmod_init());
- root
- A valid oskit_dir instance. A reference to root is acquired.
Returns zero on success, or OSKIT_EINVAL if root is NULL.