os-tutorial icon indicating copy to clipboard operation
os-tutorial copied to clipboard

How to add a filesystem

Open ajh123 opened this issue 5 years ago • 6 comments

@cfenollosa @ss18 @sapsaldog @wellingguzman @alhaad How would I add a filesystem to this os. I ave been reading the os the os dev wiki the FAT file system is the easiest on to add! But i don't know how to add it to this os

ajh123 avatar May 09 '20 12:05 ajh123

It isn't so simple clearly to be explained here, but there are lots of resources related to this. I recommend you to research and read books more though.

Basically, a filesystem is a tool to determine how to read and save data by using a disk.

You need to integrate your code with a disk device driver, the filesystem you choose, and commands(or API) related to this.

The simpler version of your filesystem can be by using only memory (like memory disks) instead of disk-related things.

sapsaldog avatar May 09 '20 12:05 sapsaldog

@sapsaldog I know what a filesystem dose, but I dont know how to code one in edit: this reply might be a bit silly

ajh123 avatar May 09 '20 12:05 ajh123

No offences, but I don't think there is someone who willing to teach this every detail at least on Github. Hope you find your answer.

sapsaldog avatar May 09 '20 13:05 sapsaldog

thank you, also i did add a FizzBuss "command" to the shell

ajh123 avatar May 09 '20 13:05 ajh123

You need a disk driver first. Then you can start implementing a specification.

here are some examples: https://github.com/qloader2/qloader2/tree/master/src/fs

shreyaslad avatar May 09 '20 18:05 shreyaslad

ngl you could probably implement a tar fs in the same amount of lines as a fizzbuzz command

seriocomedy avatar May 09 '20 18:05 seriocomedy