From cf837f6874d1316fb4e516a9dc09f8a157bbd4bc Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 5 Jul 2020 20:25:53 +0300 Subject: [PATCH] Add vnode ops to subdirs of sysfs --- fs/sysfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/sysfs.c b/fs/sysfs.c index c3b172b..31d4c10 100644 --- a/fs/sysfs.c +++ b/fs/sysfs.c @@ -172,6 +172,7 @@ int sysfs_add_dir(struct vnode *at, const char *name, struct vnode **res) { kdebug("Can't find %s in %s, creating\n", name, at->name); tmp = vnode_create(VN_DIR, name); tmp->flags |= VN_MEMORY; + tmp->op = &g_sysfs_vnode_ops; tmp->mode = S_IXUSR | S_IXGRP | S_IXOTH | S_IRUSR | S_IRGRP | S_IROTH;