group
group__libshare__fspartition
The share file-system is composed of multiple partitions which each contain a directory hierarchy.

Share Filesystem Partition

function
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
function
char* shfs_sys_dir
(char *sys_dir, char *fname)
function
shfs_t* shfs_sys_init
(char *sys_dir, char *fname, shfs_ino_t **file_p)
Access the system-level sharefs partition.
function
shpeer_t* shfs_peer
(shfs_t *fs)
function
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.
function
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).
function
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.
function
size_t shfs_avail
(void)
The total number of megabytes available on the file-system utilized.
define
SHFS_DIR_CERTIFICATE
"crt"
The system-level certificate directory.
define
SHFS_DIR_PAM
"pam"
The system-level password authentification module directory.
define
SHFS_DIR_PACKAGE
"pkg"
The system-level package hierarchy.
define
SHFS_DIR_APPLICATION
"app"
The system-level application hierarchy.
define
SHFS_DIR_MIME
"mime"
The system-level mime-type directory.
define
SHFS_DIR_LICENSE
"lic"
The system-level license directory.
define
SHFS_DIR_DATABASE
"db"
THe system-level database directory.
define
SHFS_FILE_EXECUTABLE
"exec"