ProcFS: Do not assume there is one of it

The complication is around /proc/sys/ variables, which were attached
to inodes. Now they're their own thing, and the corresponding inodes
are lazily created (as all other ProcFS inodes are) and simply refer
to them by index.
This commit is contained in:
Sergey Bugaev 2019-08-16 16:35:02 +03:00 committed by Andreas Kling
commit 37cc80fb96
Notes: sideshowbarker 2024-07-19 12:39:39 +09:00
4 changed files with 144 additions and 135 deletions

View file

@ -119,7 +119,9 @@ VFS* vfs;
dbgprintf("Loaded ksyms\n");
// TODO: we should mount these from SystemServer
vfs->mount(ProcFS::the(), "/proc");
auto procfs = ProcFS::create();
procfs->initialize();
vfs->mount(procfs, "/proc");
vfs->mount(DevPtsFS::the(), "/dev/pts");
auto tmpfs = TmpFS::create();