Design documents and specification of Ext4 ?

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Design documents and specification of Ext4 ?

Post by quanganht »

Seems like there are so few documents about this file system around the Internet. And the one that I got (named ext4-foss) is not detailed enough to makke an implementation. Any idea?
"Programmers are tools for converting caffeine into code."
User avatar
f2
Member
Member
Posts: 311
Joined: Mon Jun 15, 2009 10:01 am
Location: France

Re: Design documents and specification of Ext4 ?

Post by f2 »

The "ext4" article on Wikipedia has some useful links: http://en.wikipedia.org/wiki/Ext4.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

Looked at some of those :(
"Programmers are tools for converting caffeine into code."
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Design documents and specification of Ext4 ?

Post by Love4Boobies »

The official web page can be found here. However, as with Linux-related projects in general, the code is the documentation.
Read the documentation!
But there is none...
Read it anyway!
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

But the code in Linux will have dependencies on Linux. Spliting it out is a PITA
"Programmers are tools for converting caffeine into code."
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: Design documents and specification of Ext4 ?

Post by pcmattman »

But the code in Linux will have dependencies on Linux.
There's a difference between reading and outright copying code.

You can easily read code and take the algorithms and concepts and apply them to your own, manually-written code. Copying it directly is much harder (and you don't learn anything).

If you're looking for code to copy directly, that's why you can't find anything useful.
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

well I don't plan to copy any ****. But consider that I will have to read, say, half a kernel to understand how the file system work. It is bloody stupid. I want to do my own implementation, based on the design of ext4.
"Programmers are tools for converting caffeine into code."
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Re: Design documents and specification of Ext4 ?

Post by Brynet-Inc »

quanganht wrote:well I don't plan to copy any ****. But consider that I will have to read, say, half a kernel to understand how the file system work. It is bloody stupid. I want to do my own implementation, based on the design of ext4.
Well I vana toilet made out of solid gold, but it's just not in the cards now is it?
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Design documents and specification of Ext4 ?

Post by Love4Boobies »

quanganht wrote:well I don't plan to copy any ****. But consider that I will have to read, say, half a kernel to understand how the file system work. It is bloody stupid. I want to do my own implementation, based on the design of ext4.
Erm. Have you ever read any source code before?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

Love4Boobies wrote:Erm. Have you ever read any source code before?
Yes
"Programmers are tools for converting caffeine into code."
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:

Re: Design documents and specification of Ext4 ?

Post by Combuster »

At least you didn't seem to have tried this particular case.

I know of Linux (and X.org) that you do not need to see anything beyond the driver itself to know how it works. I didn't read the entire source code to the kernel to know what hardware registers are responsible for what bit of 3D... Its none of the core kernel's business.
"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
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Design documents and specification of Ext4 ?

Post by Love4Boobies »

That's a lie! You actually need to read everything and even the sources of some unrelated projects (it doesn't matter which, though).
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
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:

Re: Design documents and specification of Ext4 ?

Post by Combuster »

What things do you think I read to reverse engineer enough to write my current Verite code?

Answer: only what was in the xf86-video-rendition package :wink:
For Ati Mach64, it was only linux/drivers/video/aty

I win. :D
"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
quanganht
Member
Member
Posts: 301
Joined: Fri May 16, 2008 7:13 pm
Location: Hanoi, Vietnam

Re: Design documents and specification of Ext4 ?

Post by quanganht »

Unfortunately I'm not that genius :(
"Programmers are tools for converting caffeine into code."
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Design documents and specification of Ext4 ?

Post by Love4Boobies »

Again, Combuster lies! He also read the unreleased source code for Minesweeper.

Ok, but jokes aside, I've looked a little through the ext4 code. You'll manage easily.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Post Reply