diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-06 17:46:47 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-06 17:47:12 -0400 |
commit | 059b2450fb71520e9d0ee1e26dd5bb48c9b6ddf7 (patch) | |
tree | 320dc8ad1205bacc86143a7bbb3918bb1925318b /src/sys/os | |
parent | e8723abcad202fc12c3e32879c9865bae524e9ce (diff) |
kern: syscall: Add SYS_mount syscall
This commit introduces the system call for mounting filesystems. As of
now, only the fstype and target params are supported
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/os')
-rw-r--r-- | src/sys/os/vfs_mount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/os/vfs_mount.c b/src/sys/os/vfs_mount.c index 034b324..8048352 100644 --- a/src/sys/os/vfs_mount.c +++ b/src/sys/os/vfs_mount.c @@ -165,7 +165,7 @@ mount_alloc(const char *name, struct mount **mp_res) * Mount a filesystem */ int -mount(struct mount_args *margs, uint32_t flags) +kmount(struct mount_args *margs, uint32_t flags) { const struct vfsops *vfsops; struct mount *mpp; @@ -256,6 +256,6 @@ mountlist_init(struct mountlist *mlp) TAILQ_INIT(&mlp->list); mlp->i = 1; - mount(&margs, 0); + kmount(&margs, 0); return 0; } |