summaryrefslogtreecommitdiff
path: root/sys/inc/kern/mount.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-21 13:59:34 -0500
committerIan Moffett <ian@osmora.org>2025-11-21 13:59:34 -0500
commit9600d3df3e1b75cff0e3ecd20ae3ca2fe393eb8b (patch)
tree9e93670ab016c8e60d4e8894b8cf7e9154398734 /sys/inc/kern/mount.h
parent794b3671ed636c4fb8a74e1cf3a636272d4fa3d9 (diff)
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 <ian@osmora.org>
Diffstat (limited to 'sys/inc/kern/mount.h')
-rw-r--r--sys/inc/kern/mount.h6
1 files changed, 3 insertions, 3 deletions
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;
};
/*