mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
devfs: handle . properly
This commit is contained in:
@@ -327,7 +327,8 @@ void devfs_init() {
|
|||||||
__assert(devfsroot);
|
__assert(devfsroot);
|
||||||
devfsroot->vnode.type = V_TYPE_DIR;
|
devfsroot->vnode.type = V_TYPE_DIR;
|
||||||
devfsroot->vnode.flags = V_FLAGS_ROOT;
|
devfsroot->vnode.flags = V_FLAGS_ROOT;
|
||||||
__assert(vfs_register(&vfsops, "devfs") == 0);
|
__assert(vfs_register(&vfsops, "devfs") == 0);
|
||||||
|
__assert(hashtable_set(&nametable, devfsroot, ".", 1, true) == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// register new device
|
// register new device
|
||||||
|
|||||||
Reference in New Issue
Block a user