Designing a small FileSystem
Designing a small FileSystem
..
Last edited by Perica on Sun Dec 03, 2006 8:53 pm, edited 2 times in total.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Designing a small FileSystem made specifically for Floppy
i suggest you bookmark the Operating System Resource Center
For a floppy, FAT12 is probably the best possible option because of its wide support. A floppy is typically something you want to use with a lot of different OS, so it *must* be standard-compliant.
I would not say the same thing for the internal filesystem on the hard drive, but that would be off-topic.
you'll indeed need to compare several existing designs to learn what works fine and what doesn't. I have no real suggestion, but plenty of ideas of what i would put in MyOwnFS
For a floppy, FAT12 is probably the best possible option because of its wide support. A floppy is typically something you want to use with a lot of different OS, so it *must* be standard-compliant.
I would not say the same thing for the internal filesystem on the hard drive, but that would be off-topic.
you'll indeed need to compare several existing designs to learn what works fine and what doesn't. I have no real suggestion, but plenty of ideas of what i would put in MyOwnFS
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:Designing a small FileSystem made specifically for Floppy
Pype, what you probably want to do is something like what apple has done in their filesystem HFS+: to have a data fork and a ressource fork. In the data fork, the files dta is saved, and the according ressource fork keeps the attributes of the file like: which application(s) are to open and handle this file.
it is just a suggestion, but have a look at how apple handles files in their file system.
ad perica: You should not design a new fs in the beginning: you will have to struggle enough with implementing an existing file system. *gg*
When I have my multitasking and message passing stuff implemented in a PROPER way, I gonna implement a floppy driver (which acts in a sequential manner - not very efficient, but enough for the beginning) and fat12 file system. It will be enough to work with.
stay safe.
it is just a suggestion, but have a look at how apple handles files in their file system.
ad perica: You should not design a new fs in the beginning: you will have to struggle enough with implementing an existing file system. *gg*
When I have my multitasking and message passing stuff implemented in a PROPER way, I gonna implement a floppy driver (which acts in a sequential manner - not very efficient, but enough for the beginning) and fat12 file system. It will be enough to work with.
stay safe.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image
Re:Designing a small FileSystem made specifically for Floppy
For FAT12 have look at following links to MS site.
http://www.microsoft.com/hwdev/hardware/fatgen.asp
http://www.microsoft.com/hwdev/download ... GEN103.doc
It's well worth if you go through Maurice J. Bach The Design of The UNIX Operating System, Prentice Hall, 1986 FS and buffercache related chapter. This is kinda enlightenment for other aspects. (of course there are other books which u can go through) You can get idea and define filesytem of your own. It is good to have file system independent of device.
http://www.microsoft.com/hwdev/hardware/fatgen.asp
http://www.microsoft.com/hwdev/download ... GEN103.doc
It's well worth if you go through Maurice J. Bach The Design of The UNIX Operating System, Prentice Hall, 1986 FS and buffercache related chapter. This is kinda enlightenment for other aspects. (of course there are other books which u can go through) You can get idea and define filesytem of your own. It is good to have file system independent of device.