aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/devfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/devfs.c')
-rw-r--r--sys/fs/devfs.c5
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;