summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-09 22:48:53 -0400
committerIan Moffett <ian@osmora.org>2024-04-09 22:48:53 -0400
commite326f77a5441abbacd23b8309a59e744999779ca (patch)
treea3d65aa32971f8ab42789e26db7725f3ac7a75a2 /sys/include
parent0103817eb5b580d769e793c8bef053eb077fa0be (diff)
kernel: vfs_mount: Fix mount code
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/mount.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/include/sys/mount.h b/sys/include/sys/mount.h
index 209fa3e..a9478e7 100644
--- a/sys/include/sys/mount.h
+++ b/sys/include/sys/mount.h
@@ -47,13 +47,15 @@ struct vfsops {
struct mount {
int flags;
size_t phash; /* Path hash */
- struct vnode *vnode;
+ struct fs_info *fs;
TAILQ_ENTRY(mount) link;
};
struct fs_info {
char name[FS_NAME_MAX]; /* Filesystem type name */
struct vfsops *vfsops; /* Filesystem operations */
+ struct vops *vops; /* Vops for our vnode */
+ struct vnode *vnode; /* Vnode for this filesystem */
struct mount *mp_root;
uint16_t caps;
};
@@ -69,7 +71,7 @@ struct fs_info {
#define MNT_RDONLY 0x00000001
#if defined(_KERNEL)
-int vfs_mount(const char *path, int mntflags);
+int vfs_mount(const char *path, int mntflags, struct fs_info *fs);
int vfs_get_mp(const char *path, struct mount **mp);
void vfs_mount_init(void);
#endif /* defined(_KERNEL) */