VFS: dot entries

This commit is contained in:
Matheus
2022-08-28 16:28:11 -03:00
parent 54d9c3d809
commit 56bee8be77
4 changed files with 11 additions and 11 deletions
+1 -2
View File
@@ -10,13 +10,12 @@ static fs_t* fs;
static int devfs_mount(dirnode_t* mountpoint, vnode_t* device, int mountflags, void* fsinfo){
dirnode_t* node = vfs_newdirnode(mountpoint->vnode.name, fs, 0);
dirnode_t* node = vfs_newdirnode(mountpoint->vnode.name, fs, NULL, mountpoint->vnode.parent);
if(!node)
return ENOMEM;
mountpoint->mount = node;
node->vnode.parent = mountpoint->vnode.parent;
return 0;
}