![]() |
MOS Source Code
|
#include "mos/filesystem/vfs_types.hpp"#include "proto/filesystem.pb.h"#include <librpc/rpc_client.h>#include <mos/allocator.hpp>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_t * | i_from_pbfull (const mosrpc_fs_inode_info *pbi, superblock_t *sb, void *private_data) |
| Convert a protobuf inode to a kernel inode. | |
| 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. | |
| PtrResult< dentry_t > | userfs_fsop_mount (filesystem_t *fs, const char *device, const char *options) |
Ensure that the userfs is connected to the server.
| userfs | The userfs to connect. |
Definition at line 107 of file userfs.cpp.
Referenced by userfs_get().
| inode_t * i_from_pbfull | ( | const mosrpc_fs_inode_info * | pbi, |
| superblock_t * | sb, | ||
| void * | private_data ) |
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 61 of file userfs.cpp.
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 82 of file userfs.cpp.
Referenced by userfs_sync_inode().
| PtrResult< dentry_t > userfs_fsop_mount | ( | filesystem_t * | fs, |
| const char * | device, | ||
| const char * | options ) |
Definition at line 557 of file userfs.cpp.
Referenced by userfs_manager_register_filesystem().