Skip to content

Commit

Permalink
Kernel: Introduce the DevFS
Browse files Browse the repository at this point in the history
The DevFS along with DevPtsFS give a complete solution for populating
device nodes in /dev. The main purpose of DevFS is to eliminate the
need of device nodes generation when building the system.

Later on, DevFS will assist with exposing disk partition nodes.
  • Loading branch information
supercomputer7 authored and awesomekling committed Dec 27, 2020
1 parent 18e77aa commit 247517c
Show file tree
Hide file tree
Showing 7 changed files with 774 additions and 55 deletions.
4 changes: 1 addition & 3 deletions Base/etc/fstab
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Root file system. This is a fake entry which gets ignored by `mount -a`;
# the actual logic for mounting root is in the kernel.
/dev/hda / ext2 nodev,nosuid,ro
# Remount /bin, /dev, /root, and /home while adding the appropriate permissions.
/dev /dev bind bind,nosuid,ro
# Remount /bin, /root, and /home while adding the appropriate permissions.
/bin /bin bind bind,nodev,ro
/etc /etc bind bind,nodev,nosuid
/home /home bind bind,nodev,nosuid
/root /root bind bind,nodev,nosuid
/var /var bind bind,nodev,nosuid

none /proc proc nosuid
none /dev/pts devpts noexec,nosuid,ro
none /tmp tmp nodev,nosuid
1 change: 1 addition & 0 deletions Kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ set(KERNEL_SOURCES
DoubleBuffer.cpp
FileSystem/BlockBasedFileSystem.cpp
FileSystem/Custody.cpp
FileSystem/DevFS.cpp
FileSystem/DevPtsFS.cpp
FileSystem/Ext2FileSystem.cpp
FileSystem/FIFO.cpp
Expand Down
Loading

0 comments on commit 247517c

Please sign in to comment.