[MicroDOS] Adding a VFS File system

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
nyllerrorthedev
Posts: 8
Joined: Tue Aug 18, 2026 7:30 am

[MicroDOS] Adding a VFS File system

Post by nyllerrorthedev »

(If you havent, read https://forum.osdev.org/viewtopic.php?p=354679#p354679 which is about changing the name from FlipOS to MicroDOS, and switching to plain terminal)
I have been on the adventure to develop my Hobby OS, right now i have developed a very bare bones VFS file system. Right now, you cant add files, but you can list files. So far, here it is:
Image
heres the open source code:

Code: Select all

typedef struct {
        const char *name;
        const char *content;
}ramdisk;

const ramdisk vfs[] = {
        {"hi.txt", "hello world!!"}
};

Hope ya like it!! :D
dragonzapedu
Posts: 10
Joined: Mon Aug 17, 2026 4:09 am
Location: United Kingdom
GitHub: https://github.com/nibblebits
Contact:

Re: [MicroDOS] Adding a VFS File system

Post by dragonzapedu »

I think its pretty great, take a look at my FAT32 filesystem implementation if you want to take yours further, theirs a lot of abstraction which is good: https://github.com/nibblebits/PeachOS64 ... Bit/src/fs
nyllerrorthedev
Posts: 8
Joined: Tue Aug 18, 2026 7:30 am

Re: [MicroDOS] Adding a VFS File system

Post by nyllerrorthedev »

Sounds amd looks cool 8) ! I may stick with my VFS System, since its a bit more easier to navigate with. Im pretty new to this community after all. Thanks, though! I really like it :D
dragonzapedu
Posts: 10
Joined: Mon Aug 17, 2026 4:09 am
Location: United Kingdom
GitHub: https://github.com/nibblebits
Contact:

Re: [MicroDOS] Adding a VFS File system

Post by dragonzapedu »

nyllerrorthedev wrote: Sun Aug 23, 2026 9:57 am Sounds amd looks cool 8) ! I may stick with my VFS System, since its a bit more easier to navigate with. Im pretty new to this community after all. Thanks, though! I really like it :D
You're welcome just remember if you have a read only filesystem its very easy because you can essentially just store file data records with the actual data directly after it no problem. The moment you start wanting the ability to write to files that's where you need to be more clever with your design such as cluster tables that determine which clusters are free, reserved, or taken.

If you want a really lazy implementation that has ability to write then you can store it as you would with a read only filesystem but if theirs a write to a file move the entire data of that file to the end of the disk, then have a kind of round robin type of setup this can work but its inefficient better with the tables or some other design. I build my own filesystems live here so you can subscribe if you are interested: https://www.youtube.com/watch?v=dqQi7Amp25g
nyllerrorthedev
Posts: 8
Joined: Tue Aug 18, 2026 7:30 am

Re: [MicroDOS] Adding a VFS File system

Post by nyllerrorthedev »

Alright! I like that idea :mrgreen: Ive been working on other things though, like making drivers for Linux on chromebooks, and wiping the source code in the meantime.... :lol: fortunately, I know how to rewrite it. Its nothing really that bad!
Post Reply