#include <oskit/fs/fsnamespace.h>oskit_error_t oskit_fsnamespace_clone(oskit_fsnamespace_t *f, oskit_fsnamespace_t **out_fsnamespace);
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.
- f
- The OSKit filesysem namespace interface object.
- out_fsnamespace
- The oskit_fsnamespace COM interface for the new copy.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.