Libary-based VFS

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
ichigo
Posts: 2
Joined: Wed Mar 23, 2022 8:01 pm

Libary-based VFS

Post by ichigo »

Hello OSdevers!

I have a question, and I hope some of you would be able to answer it. How does libary-based VFS is implemented on-top of a Microkernel? It would really be a neat idea to reduce the communication overhead compared to when VFS is implemented as a server. In the case of a server-based VFS, user process --> vfs server --> fs server (e.g., ext2) --> disk driver. How can a library-based VFS lookup a path and know which FS server it needs to message? Any information/references about library-based VFS implementation would be appreciated.

Thank you!
User avatar
eekee
Member
Member
Posts: 881
Joined: Mon May 22, 2017 5:56 am
Location: Kerbin
Discord: eekee
Contact:

Re: Libary-based VFS

Post by eekee »

Uh, I can't say I know how this is done, but the first thing that comes to mind is a registry mapping paths to file servers; a mount registry. I'd consider the case of the registry changing between a user program looking up and connecting to a FS server. It might be fine because mounting and unmounting should always be done with some care.
Kaph — a modular OS intended to be easy and fun to administer and code for.
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie
Post Reply