MOS Source Code
Loading...
Searching...
No Matches
userfs.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
7
8#include <librpc/rpc_client.h>
9#include <mos/allocator.hpp>
10
17
24
33inode_t *i_from_pbfull(const mosrpc_fs_inode_info *pbi, superblock_t *sb, void *private_data);
34
43
44PtrResult<dentry_t> userfs_fsop_mount(filesystem_t *fs, const char *device, const char *options);
mos::basic_string< char, mos::default_allocator > string
Definition string.hpp:336
mos::string rpc_server_name
The name of the RPC server.
Definition userfs.hpp:14
rpc_server_stub_t * rpc_server
The RPC server stub, if connected.
Definition userfs.hpp:15
filesystem_t fs
The filesystem, "userfs.<name>".
Definition userfs.hpp:13
void userfs_ensure_connected(userfs_t *userfs)
Ensure that the userfs is connected to the server.
Definition userfs.cpp:105
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.
Definition userfs.cpp:80
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.
Definition userfs.cpp:59
PtrResult< dentry_t > userfs_fsop_mount(filesystem_t *fs, const char *device, const char *options)
Definition userfs.cpp:555