MOS Source Code
Loading...
Searching...
No Matches
userfs.h
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
16
23
32inode_t *i_from_pbfull(const mosrpc_fs_inode_info *pbi, superblock_t *sb, void *private);
33
42
43dentry_t *userfs_fsop_mount(filesystem_t *fs, const char *device, const char *options);
const char * rpc_server_name
The name of the RPC server.
Definition userfs.h:13
rpc_server_stub_t * rpc_server
The RPC server stub, if connected.
Definition userfs.h:14
filesystem_t fs
The filesystem, "userfs.<name>".
Definition userfs.h:12
void userfs_ensure_connected(userfs_t *userfs)
Ensure that the userfs is connected to the server.
Definition userfs.c:87
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.c:62
inode_t * i_from_pbfull(const mosrpc_fs_inode_info *pbi, superblock_t *sb, void *private)
Convert a protobuf inode to a kernel inode.
Definition userfs.c:41
dentry_t * userfs_fsop_mount(filesystem_t *fs, const char *device, const char *options)
Definition userfs.c:542