MOS Source Code
|
#include "mos/filesystem/userfs/userfs.h"
#include "mos/filesystem/dentry.h"
#include "mos/filesystem/vfs_types.h"
#include "mos/filesystem/vfs_utils.h"
#include "mos/misc/profiling.h"
#include "mos/syslog/printk.h"
#include "proto/filesystem.pb.h"
#include "proto/filesystem.services.h"
#include <librpc/macro_magic.h>
#include <librpc/rpc.h>
#include <librpc/rpc_client.h>
#include <librpc/rpc_server.h>
#include <mos/filesystem/fs_types.h>
#include <mos/proto/fs_server.h>
#include <mos_stdio.h>
#include <mos_stdlib.h>
#include <mos_string.h>
#include <pb.h>
#include <pb_decode.h>
#include <pb_encode.h>
Go to the source code of this file.
Macros | |
#define | userfs_get(_fs, _fmt, ...) |
Variables | |
static const inode_ops_t | userfs_iops |
static const file_ops_t | userfs_fops |
static const inode_cache_ops_t | userfs_inode_cache_ops |
static const superblock_ops_t | userfs_sb_ops |
#define userfs_get | ( | _fs, | |
_fmt, | |||
... ) |
Definition at line 34 of file userfs.c.
Referenced by userfs_fsop_mount(), userfs_inode_cache_fill_cache(), userfs_inode_cache_flush_page(), userfs_iop_hardlink(), userfs_iop_iterate_dir(), userfs_iop_lookup(), userfs_iop_mkdir(), userfs_iop_mknode(), userfs_iop_newfile(), userfs_iop_readlink(), userfs_iop_rename(), userfs_iop_rmdir(), userfs_iop_symlink(), userfs_iop_unlink(), and userfs_sync_inode().
inode_t * i_from_pbfull | ( | const mosrpc_fs_inode_info * | pbi, |
superblock_t * | sb, | ||
void * | private ) |
Convert a protobuf inode to a kernel inode.
pbi | The protobuf inode. |
sb | The superblock. |
private | The private data for the inode. |
Definition at line 41 of file userfs.c.
Referenced by userfs_fsop_mount(), userfs_iop_lookup(), userfs_iop_mkdir(), and userfs_iop_newfile().
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.
i | The kernel inode. |
pbi | The protobuf inode, which must be allocated. |
Definition at line 62 of file userfs.c.
Referenced by userfs_sync_inode().
mosrpc_fs_inode_ref i_to_pb_ref | ( | const inode_t * | i | ) |
Definition at line 81 of file userfs.c.
Referenced by userfs_inode_cache_fill_cache(), userfs_inode_cache_flush_page(), userfs_iop_iterate_dir(), userfs_iop_lookup(), userfs_iop_mkdir(), userfs_iop_newfile(), userfs_iop_readlink(), userfs_iop_unlink(), and userfs_sync_inode().
|
static |
|
static |
|
static |
|
static |
|
static |
long userfs_inode_cache_flush_page | ( | inode_cache_t * | cache, |
off_t | pgoff, | ||
phyframe_t * | page ) |
long userfs_sync_inode | ( | inode_t * | inode | ) |
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().
|
static |
Definition at line 29 of file userfs.c.
Referenced by i_from_pbfull(), userfs_iop_lookup(), userfs_iop_mkdir(), and userfs_iop_newfile().
|
static |
Definition at line 30 of file userfs.c.
Referenced by i_from_pbfull(), userfs_iop_lookup(), userfs_iop_mkdir(), and userfs_iop_newfile().
|
static |
Definition at line 31 of file userfs.c.
Referenced by userfs_iop_lookup(), userfs_iop_mkdir(), and userfs_iop_newfile().
|
static |
Definition at line 32 of file userfs.c.
Referenced by userfs_fsop_mount().