Results 1 to 6 of 6
Hi Sir,
I am implementing a Stackable File System.
I have to take inodes of all files/dir present in the dir
in a structure.
How would i do it ?
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-01-2008 #1Just Joined!
- Join Date
- Oct 2007
- Posts
- 13
How to get list of all inodes in a directory
Hi Sir,
I am implementing a Stackable File System.
I have to take inodes of all files/dir present in the dir
in a structure.
How would i do it ?
How to get list of inodes in a dir ?
- 03-01-2008 #2Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 358
I would try debugfs /dev/hdxx 'where xx=hdd and partition' if you are using ext2/3 file system. Use the 'man' command to find out how to use debugfs. (man--debugfs , I think) or from within debugfs use ? for help.How to get list of inodes in a dir ?
I'm not sure if it will give what you want or not.
Have no idea of what you are doing.I am implementing a Stackable File System.
I have to take inodes of all files/dir present in the dir
in a structure.
How would i do it ?
- 03-02-2008 #3
- 03-03-2008 #4Just Joined!
- Join Date
- Oct 2007
- Posts
- 13
- 03-07-2008 #5Just Joined!
- Join Date
- Feb 2008
- Posts
- 50
I think you need to use iget().. First see how the inode cache works.. so you can easily solve your problem..
Thanks,
Pankaj.
- 03-12-2008 #6
I guess ,you need readdir() system call.
Check
Code:man readdir
First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-----
FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org


Reply With Quote

