How to implement a very simple filesystem?

前端 未结 5 1153
滥情空心
滥情空心 2021-01-30 04:31

I am wondering how the OS is reading/writing to the hard drive.
I would like as an exercise to implement a simple filesystem with no directories that can read and write file

5条回答
  •  野的像风
    2021-01-30 04:52

    Just a complement to what Coyote21 said. You can read this thesis http://www.minix3.org/theses/gerofi-minix-vfs.pdf

    In this thesis you can learn a little more about VFS and some details are described there. There are very helpful things in appendix B. There is an implementation of a file system (not a real file system, but one in memory).

提交回复
热议问题