group
group__libshare__fsjournal
A share file-system journal is a sequential set of inodes.
Partition Journal Management
A set of journals may hold data for one or more share file-system partitions.
void shfs_journal_path
(shfs_t *tree, int index, char *ret_path)
The local file-system path where a sharefs journal is stored.
shfs_journal_t* shfs_journal_open
(shfs_t *tree, int index)
Returns an instance to a sharefs filesystem journal.
int shfs_journal_scan
(shfs_t *tree, shkey_t *key, shfs_idx_t *idx)
Search for the first empty inode entry in a journal.
Param
tree
The sharefs filesystem partition.
key
The token name of the inode being referenced.
idx
The index number of the journal.
Return Value
A inode index number or zero (0) on failure.
Note
Inode index #0 is reserved for system use.
int shfs_journal_close
(shfs_journal_t **jrnl_p)
Release all resources being used to reference a shared partition journal.
Param
jrnl_p
A reference to the journal.
Return Value
A zero (0) on success and a negative error code on failure.
shfs_block_t* shfs_journal_block
(shfs_journal_t *jrnl, int ino)
Retrieve an inode block from a journal.
size_t shfs_journal_size
(shfs_journal_t *jrnl)
Calculates the byte size of a sharefs partition journal.
void shfs_journal_cache_free
(shfs_t *tree)
int shfs_journal_index
(shkey_t *key)
Identify the default journal number for a inode's name.
Return Value
A sharefs filesystem journal index number.
Note
Journal #0 is reserved for system use.