group
group__libshare__fspartition
The share file-system is composed of multiple partitions which each contain a directory hierarchy.
Share Filesystem Partition
shfs_t* shfs_init
(shpeer_t *peer)
Creates a reference to a sharefs filesystem.
Param
peer
A local or remote reference to a sharefs partition. A combination of SHFS_PARTITION_XXX flags.
flags
Return Value
A share partition associated with the peer specified or the local default partition if a NULL peer is specified.
shfs_t
structshfs__t
compound
Todo
write local file '/system/version' with current version.
todo_1_todo000001
char* shfs_sys_dir
(char *sys_dir, char *fname)
shfs_t* shfs_sys_init
(char *sys_dir, char *fname, shfs_ino_t **file_p)
Access the system-level sharefs partition.
shpeer_t* shfs_peer
(shfs_t *fs)
void shfs_free
(shfs_t **tree_p)
Free a reference to a sharefs partition.
Param
tree_p
A reference to the sharefs partition instance to free.
shkey_t* shfs_partition_id
(shfs_t *tree)
Obtain the partition id for a sharefs partition.
Note
The local parition will always return zero (0).
shfs_t* shfs_uri_init
(char *path, int flags, shfs_ino_t **ino_p)
Obtain the share-fs and optional file for a share-fs URI path.
size_t shfs_avail
(void)
The total number of megabytes available on the file-system utilized.
SHFS_DIR_CERTIFICATE
"crt"
The system-level certificate directory.
SHFS_DIR_PAM
"pam"
The system-level password authentification module directory.
SHFS_DIR_PACKAGE
"pkg"
The system-level package hierarchy.
SHFS_DIR_APPLICATION
"app"
The system-level application hierarchy.
SHFS_DIR_MIME
"mime"
The system-level mime-type directory.
SHFS_DIR_LICENSE
"lic"
The system-level license directory.
SHFS_DIR_DATABASE
"db"
THe system-level database directory.
SHFS_FILE_EXECUTABLE
"exec"