Results 1 to 5 of 5
hi , everyone. i want to get the block numbers of a file. Could you tell me which function can i use? thanx!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-04-2009 #1
How to get the block numbers of a file ?
hi , everyone.
i want to get the block numbers of a file. Could you tell me which function can i use?
- 06-04-2009 #2
- 06-04-2009 #3
block numbers are stored in file's inode. They represent the location where the files contents are stored.
I would suggest downloading e2fsprogs and spending some time "debugfs" command will help you a lot -e2fsprogs has library that allows all activities with FS. If you want access blocks in "unprofessional messy way" you can check my tool giis source codes
- 06-04-2009 #4
- 06-04-2009 #5
giis code doesn't use standard libraries to access FS. Whereas almost all other tools use e2fsprogs library.