diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-01 20:35:55 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-01 20:41:50 -0500 |
commit | 7304758298141964b024892d757967f32418bccc (patch) | |
tree | 592665843ee6d6f57e6abcb60105a4ac72eeb64c | |
parent | 899372a1a7eb7db0ad29046fdf36c766c45b8993 (diff) |
kernel: mount: Update sys/mount.h
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/include/sys/mount.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/include/sys/mount.h b/sys/include/sys/mount.h index 86581f2..3ac7ec7 100644 --- a/sys/include/sys/mount.h +++ b/sys/include/sys/mount.h @@ -32,6 +32,7 @@ #include <sys/types.h> #include <sys/queue.h> +#include <sys/vnode.h> #define FS_NAME_MAX 16 /* Max length of FS type name including nul */ @@ -40,12 +41,12 @@ struct mount; struct vfsops { int(*init)(struct fs_info *info); - int(*vget_name)(struct fs_info *info, const char *name); }; struct mount { int flags; size_t phash; /* Path hash */ + struct vnode *vnode; TAILQ_ENTRY(mount) link; }; @@ -61,7 +62,9 @@ struct fs_info { #define MNT_RDONLY 0x00000001 #if defined(_KERNEL) -int vfs_mount(struct mount **mp_out, const char *path, int mnt_flags); +int vfs_mount(const char *path, int mntflags); +int vfs_get_mp(const char *path, struct mount **mp); +void vfs_mount_init(void); #endif /* defined(_KERNEL) */ #endif /* !_SYS_MOUNT_H_ */ |