linux ext3 inode questions
August 15th, 2006
inodes , ext3
I wanted to index files partly based on inodes. I wanted to store metadata on files. Why work with inodes?
- While users play with filenames, the system doesnt care about names. The inode is the most important thing.
- if you rename a file, the inode stays the same.
- No matter where you 'move' the file, the inode stays the same.
- The inode table is recorded on that filesystem, on that volume. Inode stays the same on mount, umount.. on any machine that reads ext3.
Possible problems.
Copying a file loses all sense to the system. That is , a copy of a file is to the system - a completely different data collection- however to the user it is the same.
Jane copies 'family fotos' from disk a to disk b- In Jane's mind, these are the same. In the computer's mind, these might as well be jane's photos and the blue prints to the whitehouse. How do we keep metadata associated?