summaryrefslogtreecommitdiff
path: root/src/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-19 01:43:26 -0400
committerIan Moffett <ian@osmora.org>2025-09-19 01:53:32 -0400
commitaa5bf63637a5c0aa6ccebd959461bfa1a9d8f0ff (patch)
treec2adcd0eef842ea73f8ff85168ee48c3b4875907 /src/sys/include
parent017a6a964c06eb8a3dbe30281d5a3bb3ac8f3ca5 (diff)
kernel: vfs: Add initial mount code + mount initrd
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include')
-rw-r--r--src/sys/include/sys/mount.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sys/include/sys/mount.h b/src/sys/include/sys/mount.h
index 0296b70..3c4d0be 100644
--- a/src/sys/include/sys/mount.h
+++ b/src/sys/include/sys/mount.h
@@ -56,12 +56,15 @@ extern struct vfsops g_omar_vfsops;
/*
* Represents a mountpoint
+ *
+ * @vp: Vnode of mount
+ * @name: Mountname
+ * @link: TAILQ link
*/
struct mount {
struct vnode *vp;
- const char *name;
+ char name[FSNAME_MAX];
TAILQ_ENTRY(mount) link;
- TAILQ_HEAD(, mount) buckets;
};
/*
@@ -76,12 +79,14 @@ struct mountlist {
/*
* Arguments for mount()
*
+ * @vp_res: Vnode result
* @source: Specifies the source filesystem to mount
* @target: Specifies the location to mount source
* @fstype: File system type
* @data: Filesystem specific data
*/
struct mount_args {
+ struct vnode *vp_res;
const char *source;
const char *target;
const char *fstype;