1820597 Members
1720 Online
109626 Solutions
New Discussion юеВ

Re: Regarding inode

 
Minoru Asano
Frequent Advisor

Regarding inode

Hello,
I would like to know regarding inode.

[ENVIRONMENT]
RHEL 3 up5

[QUESTION]
1. When some file is created at ext3 file system, what algorithm is inode created ?
And who does inode assign ? For example, part of kernel's file system module, so on.

2. Could you tell me the inode order ?
For example, we can use inode from 1 to 10, and from 1 to 7 are used, and 8,9,10 is not used.
At above situation, inode's 3 is deleted, and when next file is created, what inode is used ?
Is inode's 3 used ? or are inode's 8 or 9 or 10 used ?

Thank you for advice.
Best Regards.
/Minoru.

2 REPLIES 2
Steven Schweda
Honored Contributor

Re: Regarding inode

> I would like to know regarding inode.

Why do you care? What are you trying to do?
Ivan Ferreira
Honored Contributor

Re: Regarding inode

Currently ext3 and ext4dev allocate inodes in linear order within each block groups.

A file system contains a variable number of block groups. So, it depends on which block group your file is created.

Check also:

http://uranus.it.swin.edu.au/~jn/explore2fs/es2fs.htm

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?