MOS Source Code
Loading...
Searching...
No Matches
userfs.h File Reference
+ Include dependency graph for userfs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  userfs_t
 

Functions

void userfs_ensure_connected (userfs_t *userfs)
 Ensure that the userfs is connected to the server.
 
inode_ti_from_pbfull (const mosrpc_fs_inode_info *pbi, superblock_t *sb, void *private)
 Convert a protobuf inode to a kernel inode.
 
mosrpc_fs_inode_infoi_to_pb_full (const inode_t *i, mosrpc_fs_inode_info *pbi)
 Convert a kernel inode to a protobuf inode.
 
dentry_tuserfs_fsop_mount (filesystem_t *fs, const char *device, const char *options)
 

Function Documentation

◆ userfs_ensure_connected()

void userfs_ensure_connected ( userfs_t * userfs)

Ensure that the userfs is connected to the server.

Parameters
userfsThe userfs to connect.

Definition at line 87 of file userfs.c.

+ Here is the call graph for this function:

◆ i_from_pbfull()

inode_t * i_from_pbfull ( const mosrpc_fs_inode_info * pbi,
superblock_t * sb,
void * private )

Convert a protobuf inode to a kernel inode.

Parameters
pbiThe protobuf inode.
sbThe superblock.
privateThe private data for the inode.
Returns
inode_t* An allocated kernel inode.

Definition at line 41 of file userfs.c.

Referenced by userfs_fsop_mount(), userfs_iop_lookup(), userfs_iop_mkdir(), and userfs_iop_newfile().

+ Here is the call graph for this function:

◆ i_to_pb_full()

mosrpc_fs_inode_info * i_to_pb_full ( const inode_t * i,
mosrpc_fs_inode_info * pbi )

Convert a kernel inode to a protobuf inode.

Parameters
iThe kernel inode.
pbiThe protobuf inode, which must be allocated.
Returns
pb_inode* The protobuf inode, returned for convenience.

Definition at line 62 of file userfs.c.

Referenced by userfs_sync_inode().

◆ userfs_fsop_mount()

dentry_t * userfs_fsop_mount ( filesystem_t * fs,
const char * device,
const char * options )

Definition at line 542 of file userfs.c.

Referenced by userfs_manager_register_filesystem().

+ Here is the call graph for this function: