Page 1 of 1
[MicroDOS] Adding a VFS File system
Posted: Fri Aug 21, 2026 4:52 am
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:

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!!

Re: [MicroDOS] Adding a VFS File system
Posted: Sun Aug 23, 2026 9:54 am
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
Re: [MicroDOS] Adding a VFS File system
Posted: Sun Aug 23, 2026 9:57 am
by nyllerrorthedev
Sounds amd looks cool

! 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

Re: [MicroDOS] Adding a VFS File system
Posted: Sun Aug 23, 2026 10:02 am
by dragonzapedu
nyllerrorthedev wrote: ↑Sun Aug 23, 2026 9:57 am
Sounds amd looks cool

! 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
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
Re: [MicroDOS] Adding a VFS File system
Posted: Sun Aug 23, 2026 10:05 am
by nyllerrorthedev
Alright! I like that idea

Ive been working on other things though, like making drivers for Linux on chromebooks, and wiping the source code in the meantime....

fortunately, I know how to rewrite it. Its nothing really that bad!