summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/mount.h
blob: 5fb6d16abba6a6cee83b44a40397a3dfc9664f12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include <kernel/vfs/request.h>
#include <stddef.h>

struct vfs_mount {
	struct vfs_mount *prev;
	char *prefix;
	size_t prefix_len;
	struct vfs_backend *backend;
};

// prepares init's filesystem view
struct vfs_mount *vfs_mount_seed(void);
struct vfs_mount *vfs_mount_resolve(
		struct vfs_mount *top, const char *path, size_t path_len);