ext2fs documentation

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.
Post Reply
octavio
Member
Member
Posts: 94
Joined: Wed Oct 25, 2006 5:12 am
Location: Barcelona España
Contact:

ext2fs documentation

Post by octavio »

Hello ,i'm searching info about ext2fs structure but all i have found are overviews and data does not match with the ext2fs i have on my hard disk
has someone a doc good enought to write drivers?
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

After searching Google, I've found a few sites that might be helpful to you..

http://www.nongnu.org/ext2-doc/ seems rather complete, if not slighly dated...

Other helpful sites:
http://web.mit.edu/tytso/www/linux/ext2intro.html
http://uranus.it.swin.edu.au/~jn/explore2fs/es2fs.htm

Optionally, OpenBSD/NetBSD and FreeBSD all have BSD-style licenced implementations you can look at, and of coarse, Linux has GPL source available as well.

Good luck.. 8)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
octavio
Member
Member
Posts: 94
Joined: Wed Oct 25, 2006 5:12 am
Location: Barcelona España
Contact:

Post by octavio »

Thanks,the third link seems to be complete,the first two are only a overview.
is ext2fs limited to 4GB filesize?
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

Hi,

I've had no problems whatsoever regarding data on the internet and current implementations of ext2/ext3. The standard ext2 spec will get you well on your way - I would advise you to look inwards at your own implementation if something doesn't play right - it works fine for me.

Ext2 is *not* limited to 4GB, because it uses an indirection system - read the manual.
octavio
Member
Member
Posts: 94
Joined: Wed Oct 25, 2006 5:12 am
Location: Barcelona España
Contact:

Post by octavio »

JamesM wrote:Hi,

Ext2 is *not* limited to 4GB, because it uses an indirection system - read the manual.
what manual?
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Post by AJ »

See Brynet's post.
octavio
Member
Member
Posts: 94
Joined: Wed Oct 25, 2006 5:12 am
Location: Barcelona España
Contact:

Post by octavio »

JamesM wrote: Ext2 is *not* limited to 4GB, because it uses an indirection system - read the manual.
Not sure if i'm reading the same manual but
1.5.3. i_size
32bit value indicating the size of the file in bytes.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

1.5.16. i_dir_acl

32bit value used to indicate the "high size" of the file. In previous revisions this value was always 0.
Which makes a 64 bit value (i_size | (i_dir_acl << 32)).
Post Reply