How to implement a very simple filesystem?

前端 未结 5 1189
滥情空心
滥情空心 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 05:05

    For learning the ideas of a file system it's not really necessary to use a disk i think. Just create an array of 512 byte byte-arrays. Just imagine this a your Harddisk an start to experiment a bit. Also you may want to hava a look at some of the standard OS textbooks like http://codex.cs.yale.edu/avi/os-book/OS8/os8c/index.html

提交回复
热议问题