From e326f77a5441abbacd23b8309a59e744999779ca Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 9 Apr 2024 22:48:53 -0400 Subject: kernel: vfs_mount: Fix mount code Signed-off-by: Ian Moffett --- sys/include/sys/mount.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/include') 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) */ -- cgit v1.2.3