OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 7:36 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Resize Inode
PostPosted: Thu Jun 07, 2012 9:37 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
I've Googled, searched the Wiki and forums and come up with northing about this question, so I hope that I've done my homework.

I'm implementing an ext2 filesystem driver and when testing it I've come across the "resize inode". When I write a file and then do fsck it shows that there is a problem with this entity. For the time being I have taken the easy way out and have created my filesystem without a resize inode, which also provides more free blocks, but I'm curious to know how it works. I know that it's inode 7, but more than that is a mystery. Does anyone have a simple explanation, or a pointer to one? If not then I guess it's a question of studying the Linux source code or trying to reverse engineer by studying what happens to that particular inode as files are created/destroyed on a Linux system.

It's not that important, but I hate not knowing how things work.


Top
 Profile  
 
 Post subject: Re: Resize Inode
PostPosted: Thu Jun 07, 2012 10:53 am 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4591
Location: Chichester, UK
I don't think so. I think that refers to the possibilty of a fs having an inode size different from the "standard" 128 bytes. The resize inode, as far as I can make out, is something that allows one to dynamically resize the fs. Since it reserves quite a few extra blocks I expect that these somehow keep track of information about the fs and the inode tracks them. But how it works is a mystery. There are not many subjects that Google fails to give any information on.

The default in my Fedora 17 is to include this inode when creating an ext fs so I'm guessing that many of us have one but have no idea how it works!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group