Resize Inode
Posted: Thu Jun 07, 2012 9:37 am
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.
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.