Hello and mi first question

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
DeepOS
Posts: 4
Joined: Thu Feb 21, 2008 6:36 am

Hello and mi first question

Post by DeepOS »

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 :oops:
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

<completely shameless plug>

http://www.jamesmolloy.co.uk/tutorial_h ... nitrd.html

</completely shameless plug>
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

Post by os.hacker64 »

read up and you won't be a dummy. :roll:
DeepOS
Posts: 4
Joined: Thu Feb 21, 2008 6:36 am

Post by DeepOS »

Thank's guys!!! :P

James, your link is about VFS, I need real FileSystem (storing the data in a real HD) :wink:
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

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
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

DeepOS wrote:Thank's guys!!! :P

James, your link is about VFS, I need real FileSystem (storing the data in a real HD) :wink:
Hi,

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.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

SFS is extremely easy the implement: It's a good first filesystem

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
zaleschiemilgabriel
Member
Member
Posts: 232
Joined: Mon Feb 04, 2008 3:58 am

Post by zaleschiemilgabriel »

Thanks! :D Is there any installable file system or a similar application for Windows or Ubuntu for quick access to files on a SimpleFS partition?
DeepOS
Posts: 4
Joined: Thu Feb 21, 2008 6:36 am

Post by DeepOS »

Thanks for all links, I have an idea for developing my own FileSystem, the doc of the VFS helps me a lot :lol:

I have a new question, how can I comunicate my OS with the physical drive???

I need to know how can I write/read the physical drive, can anyone give me some info about it?
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

Post by os.hacker64 »

Designing a good filesystem is hard, take my word for it. :shock:
sam_14332
Posts: 2
Joined: Thu Feb 21, 2008 4:43 pm
Contact:

Post by sam_14332 »

Designing a good filesystem is hard, take my word for it.
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!
User avatar
Combuster
Member
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:

Post by Combuster »

sam_14332 wrote:
Designing a good filesystem is hard, take my word for it.
Absolutely NOT, implementing a filesystem is something you could do for breakfast.
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.

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.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
XCHG
Member
Member
Posts: 416
Joined: Sat Nov 25, 2006 3:55 am
Location: Wisconsin
Contact:

Post by XCHG »

sam_14332 wrote:
Designing a good filesystem is hard, take my word for it.
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!
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.
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.
User avatar
piranha
Member
Member
Posts: 1391
Joined: Thu Dec 21, 2006 7:42 pm
Location: Unknown. Momentum is pretty certain, however.
Contact:

Post by piranha »

Is there any installable file system or a similar application for Windows or Ubuntu for quick access to files on a SimpleFS partition?
The only available one is for windows, called VDisk.
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!
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.

-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
User avatar
os.hacker64
Member
Member
Posts: 149
Joined: Mon Feb 11, 2008 4:43 pm
Location: Limbo City,Afterlife

Post by os.hacker64 »

Probably stupid, what kind of background do you have that makes you fit to make a "GOOD' filesystem? Breakfast my @$$.
Post Reply