From 8c79b2127ac9a4f5ceec8f5003021e38bffb177e Mon Sep 17 00:00:00 2001 From: Kaimakan71 Date: Sun, 28 Apr 2024 08:11:25 -0400 Subject: kernel: vfs: Pass source vnode to vfsops.init() Signed-off-by: Kaimakan71 Signed-off-by: Ian Moffett --- sys/fs/devfs.c | 5 ++++- sys/fs/initramfs.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'sys/fs') diff --git a/sys/fs/devfs.c b/sys/fs/devfs.c index 8b273db..cb4a3ba 100644 --- a/sys/fs/devfs.c +++ b/sys/fs/devfs.c @@ -140,8 +140,11 @@ vop_read(struct vnode *vp, struct sio_txn *sio) } static int -devfs_init(struct fs_info *info) +devfs_init(struct fs_info *info, struct vnode *source) { + if (source != NULL) + return -EINVAL; + TAILQ_INIT(&nodes); nodelist_init = true; return 0; diff --git a/sys/fs/initramfs.c b/sys/fs/initramfs.c index b7f0c71..e15c00d 100644 --- a/sys/fs/initramfs.c +++ b/sys/fs/initramfs.c @@ -193,8 +193,11 @@ getsize(const char *in) } static int -initramfs_init(struct fs_info *info) +initramfs_init(struct fs_info *info, struct vnode *source) { + if (source != NULL) + return -EINVAL; + initramfs = get_module("/boot/initramfs.tar", &initramfs_size); info->caps = FSCAP_FULLPATH; -- cgit v1.2.3