Skip to content

Commit

Permalink
posix: Create /proc/fs/ext2/sda0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke committed Oct 28, 2023
1 parent cd4d5c2 commit f20b032
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions posix/subsystem/src/procfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ std::shared_ptr<Link> DirectoryNode::createRootDirectory() {

the_node->directMkregular("uptime", std::make_shared<UptimeNode>());

auto fsLink = the_node->directMkdir("fs");
auto fs = std::static_pointer_cast<DirectoryNode>(fsLink->getTarget());
auto ext2Link = fs->directMkdir("ext2");
auto ext2 = std::static_pointer_cast<DirectoryNode>(ext2Link->getTarget());
ext2->directMkdir("sda0");

return link;
}

Expand Down

0 comments on commit f20b032

Please sign in to comment.