mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
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:
parent
1febd59f83
commit
37cc80fb96
4 changed files with 144 additions and 135 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue