group
group__libshare__fsfile
Provides the capability to read and write data to a File Inode.

File I/O Access

function
int shfs_write
(shfs_ino_t *file, shbuf_t *buff)
Write auxillary data to a sharefs file inode.
function
int shfs_read_of
(shfs_ino_t *file, shbuf_t *buff, off_t of, size_t size)
Obtain a segment from a file's data content.
Note
An SHERR_NOENT error occurs if file format is not set.
function
int shfs_read
(shfs_ino_t *file, shbuf_t *buff)
Obtain file data content.
Note
An SHERR_NOENT error occurs if file format is not set.
function
int shfs_file_read
(shfs_ino_t *file, unsigned char *data, size_t data_len)
function
int shfs_file_write
(shfs_ino_t *file, unsigned char *data, size_t data_len)
function
shfs_ino_t* shfs_file_find
(shfs_t *tree, char *path)
function
int shfs_file_pipe
(shfs_ino_t *file, int fd)
function
int shfs_file_notify
(shfs_ino_t *file)
function
int shfs_file_copy
(shfs_ino_t *src_file, shfs_ino_t *dest_file)
function
int shfs_file_remove
(shfs_ino_t *file)
function
int shfs_truncate
(shfs_ino_t *file, shsize_t len)
Change the file size of a formatted inode.
Note
Only SHFS_BINARY is currently supported.