diff options
author | Kaimakan71 <undefined.foss@gmail.com> | 2024-04-28 08:11:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-28 10:09:46 -0400 |
commit | 8c79b2127ac9a4f5ceec8f5003021e38bffb177e (patch) | |
tree | 6abca80617c39e791e7e91bbec963f9596272dc8 /sys/fs/devfs.c | |
parent | 002cd9e8d37dd9cc20c32f916780fce611797852 (diff) |
kernel: vfs: Pass source vnode to vfsops.init()
Signed-off-by: Kaimakan71 <undefined.foss@gmail.com>
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs/devfs.c')
-rw-r--r-- | sys/fs/devfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |