Hello and mi first question
Hello and mi first question
Hello guys!!
I'm a dummy in OS development. Now, I'm trying to develop a Spanish OS (I'm from Spain). My OS is based in a "Shell-type" OS, I develop many comands and my next task is implement the filesystem. Can anyone give me some texts that's explain me how can I implement the filesystem??? I've searched in the OSdev wiki, in the Osdever tutorials and docs, but I don't find anything.
P.S.: Sorry, my english is not too good
I'm a dummy in OS development. Now, I'm trying to develop a Spanish OS (I'm from Spain). My OS is based in a "Shell-type" OS, I develop many comands and my next task is implement the filesystem. Can anyone give me some texts that's explain me how can I implement the filesystem??? I've searched in the OSdev wiki, in the Osdever tutorials and docs, but I don't find anything.
P.S.: Sorry, my english is not too good
<completely shameless plug>
http://www.jamesmolloy.co.uk/tutorial_h ... nitrd.html
</completely shameless plug>
http://www.jamesmolloy.co.uk/tutorial_h ... nitrd.html
</completely shameless plug>
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
Hi,
The VFS provides an abstraction for the on-disk FS, presenting a consistent interface to your OS, whatever disk type and file system you are using.
Have a look on the wiki which has information on several file systems and decide which one(s) you want to implement initially - if you have a decent VFS, you can add support for other file systems modularly or statically, depending on your OS design. James Molloy's tutorial is well worth a read through, so you know what sort of thing you are facing.
Cheers,
Adam
The VFS provides an abstraction for the on-disk FS, presenting a consistent interface to your OS, whatever disk type and file system you are using.
Have a look on the wiki which has information on several file systems and decide which one(s) you want to implement initially - if you have a decent VFS, you can add support for other file systems modularly or statically, depending on your OS design. James Molloy's tutorial is well worth a read through, so you know what sort of thing you are facing.
Cheers,
Adam
Hi,DeepOS wrote:Thank's guys!!!
James, your link is about VFS, I need real FileSystem (storing the data in a real HD)
Apologies - I must have misinterpreted your original post. There is, however, an example on that page of making an initial ramdisk filesystem. That may be of interest to you. Otherwise, the FAT and EXT2 specifications will be useful.
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
- zaleschiemilgabriel
- Member
- Posts: 232
- Joined: Mon Feb 04, 2008 3:58 am
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife
Absolutely NOT, implementing a filesystem is something you could do for breakfast. Check out my OS at http://www.mdstud.chalmers.se/~md0samue/ and take a couple of minutes to read the thesis report (the part about the filesystem) - and your filesystem will be up and running in no time!Designing a good filesystem is hard, take my word for it.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
I've popped up your thesis - it goes rambling on a full 7 pages on your filesystem design, and even in the small bit I've read I've got some doubts about wether things will actually work. As far as I can see you did consider a few things, but haven't at all stresstested it on performance. As a master student, I would IMHO expect that you at least give some sort of proof that your FS works that well as you just kindof claimed it does.sam_14332 wrote:Absolutely NOT, implementing a filesystem is something you could do for breakfast.Designing a good filesystem is hard, take my word for it.
Besides, that your lunch came for free isn't really cause that someone else's lunch came for free. I think that a rather large number of people here would not be able to fully understand what's in there.
And given that the review discussions on SFS (which is designed to be the simplest FS) have been far longer and thorough than those 7 pages, I expect that you could spend a thesis on its own really discussing a full-blown FS.
Hence I tend to agree with the (popular) opinion that designing a good FS is really an expert's job. Implementing a complex filesystems is of course a lesser burden, but still not insignificant.
Are you serious? You mean you could write a file system such as NTFS in your breakfast time? NTFS is what I call "good" and I call the rest of the file systems including what I have designed, complete crap; that includes all *nix file systems. That's my opinion anyway.sam_14332 wrote:Absolutely NOT, implementing a filesystem is something you could do for breakfast. Check out my OS at http://www.mdstud.chalmers.se/~md0samue/ and take a couple of minutes to read the thesis report (the part about the filesystem) - and your filesystem will be up and running in no time!Designing a good filesystem is hard, take my word for it.
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
The only available one is for windows, called VDisk.Is there any installable file system or a similar application for Windows or Ubuntu for quick access to files on a SimpleFS partition?
What the ****? I spent 2 hours working on my SFS code, and I am only able to read the index and file entries! You're either very smart and a fast typer or very stupid.Absolutely NOT, implementing a filesystem is something you could do for breakfast. Check out my OS at http://www.mdstud.chalmers.se/~md0samue/ and take a couple of minutes to read the thesis report (the part about the filesystem) - and your filesystem will be up and running in no time!
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
- os.hacker64
- Member
- Posts: 149
- Joined: Mon Feb 11, 2008 4:43 pm
- Location: Limbo City,Afterlife