group
group__libshare__fsdir
Provides the ability to manage the contents of a Directory Inode.

Directory Inode Management

typedef
typedef struct shfs_dir_t shfs_dir_t
typedef
typedef shfs_dir_t* SHDIR
function
shfs_ino_t* shfs_dir_base
(shfs_t *tree)
The base SHINODE_PARTITION type inode for a sharefs partition.
function
shfs_ino_t* shfs_dir_cwd
(shfs_t *tree)
The current working inode directory for a sharefs partition.
function
shfs_ino_t* shfs_dir_parent
(shfs_ino_t *inode)
Return Value
The SHINODE_DIRECTORY parent of an inode.
function
shfs_ino_t* shfs_dir_entry
(shfs_ino_t *inode, char *fname)
Return an inode from a directory inode.
function
shfs_ino_t* shfs_dir_find
(shfs_t *tree, char *path)
Locate a directory inode on a sharefs partition by an absolute pathname.
function
shfs_dir_t* shfs_opendir
(shfs_t *fs, char *path)
Open a directory to be listed.
Param
fs
The sharefs partition to use or NULL for default.
Return Value
A resource for tracking a directory list.
function
shfs_dirent_t* shfs_readdir
(shfs_dir_t *dir)
function
int shfs_closedir
(shfs_dir_t *dir)
function
int shfs_chroot
(shfs_t *fs, shfs_ino_t *dir)
function
int shfs_chroot_path
(shfs_t *fs, char *path)
function
int shfs_dir_remove
(shfs_ino_t *dir)
function
int shfs_list_fnmatch
(shfs_ino_t *file, char *fspec, shfs_dirent_t **ent_p)