mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 00:52:50 +00:00
feat(fs): Complete full FAT32 storage filesystem driver, auto-mount at /mnt/fat32, and add df & mkfs.vfat tools
This commit is contained in:
1 parent
7c620e86e7
commit
125a891621
5 files changed
+279
-20
No files matched your search
+7
-1
@@ -173,13 +173,19 @@ vfs_node_t* ramfs_create_root(void) {
|
||||
root->node.mkdir = ramfs_mkdir_impl;
|
||||
root->node.create = ramfs_create_impl;
|
||||
|
||||
// Seed default file system structure
|
||||
vfs_node_t* etc = ramfs_add_dir(&root->node, "etc");
|
||||
ramfs_add_dir(&root->node, "bin");
|
||||
ramfs_add_dir(&root->node, "dev");
|
||||
ramfs_add_dir(&root->node, "proc");
|
||||
ramfs_add_dir(&root->node, "sys");
|
||||
ramfs_add_dir(&root->node, "home");
|
||||
ramfs_add_dir(&root->node, "tmp");
|
||||
vfs_node_t* mnt = ramfs_add_dir(&root->node, "mnt");
|
||||
if (mnt) {
|
||||
ramfs_add_dir(mnt, "fat32");
|
||||
ramfs_add_dir(mnt, "ramdisk");
|
||||
ramfs_add_dir(mnt, "nvme");
|
||||
}
|
||||
|
||||
if (etc) {
|
||||
ramfs_add_file(etc, "hostname", "sub-os\n", 7);
|
||||
|
||||
Reference in new issue
Block a user