From 9600d3df3e1b75cff0e3ecd20ae3ca2fe393eb8b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Fri, 21 Nov 2025 13:59:34 -0500 Subject: kern: vfs: Decouple mounting from initialization Upon bootup, all filesystems are to be enumerated and initialized before they are mounted. Some filesystems may decide to mount themselves right away. However, it is crucial to keep mounting and initialization seperate. Signed-off-by: Ian Moffett --- sys/inc/kern/mount.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/inc') diff --git a/sys/inc/kern/mount.h b/sys/inc/kern/mount.h index 1c3dde6..747514c 100644 --- a/sys/inc/kern/mount.h +++ b/sys/inc/kern/mount.h @@ -37,6 +37,7 @@ /* Filesystem names */ #define MOUNT_TMPFS "tmpfs" +struct mount; struct fs_info; /* @@ -55,7 +56,8 @@ struct mount_args { * on filesystem objects */ struct vfsops { - int(*mount)(struct fs_info *fip, void *data); + int(*mount)(struct fs_info *fip, struct mount *mpoint); + int(*init)(struct fs_info *fip); }; /* @@ -63,12 +65,10 @@ struct vfsops { * * @name: Name of filesystem * @vfsops: Represents operations that can be performed - * @is_mounted: Set if filesystem is mounted */ struct fs_info { char *name; struct vfsops *vfsops; - uint8_t is_mounted : 1; }; /* -- cgit v1.2.3