Can inode and crtime be used as a unique file identifier?
问题 I have a file indexing database on Linux . Currently I use file path as an identifier. But if a file is moved/renamed, its path is changed and I cannot match my DB record to the new file and have to delete/recreate the record. Even worse, if a directory is moved/renamed, then I have to delete/recreate records for all files and nested directories. I would like to use inode number as a unique file identifier, but inode number can be reused if file is deleted and another file created. So, I