next up previous contents index
Next: 21 Runtime Linker/Loader: liboskit_rtld.a Up: 20.1 Introduction Previous: 20.1.6 unmount: Unmount a

20.1.7 clone: Duplicate a filesystem namespace object

 

SYNOPSIS

#include <oskit/fs/fsnamespace.h>

oskit_error_t oskit_fsnamespace_clone(oskit_fsnamespace_t *f, oskit_fsnamespace_t **out_fsnamespace);

DESCRIPTION

Duplicate a filesystem namespace object. A new filesystem namespace object is created, with its own references to the root and current working directory. All other state contained within the namespace object is shared with the parent object. For example, the results of mounting and unmounting filesystem will be seen by both the parent and child objects. The only state that is local to the new object are the root and cwd directories.

PARAMETERS

f
The OSKit filesysem namespace interface object.
out_fsnamespace
The oskit_fsnamespace COM interface for the new copy.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.


Utah Flux Research Group