in reply to Detecting whether two pathes refer to the same file
The inode number alone is not enough, you also have to compare the device number from stat, because the inode numbers are unique only within each filesystem.
The dev-inode pair usually identifies the file uniquely, but of course there are some caveats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting whether two pathes refer to the same file
by rovf (Priest) on Sep 10, 2010 at 09:50 UTC | |
by wazoox (Prior) on Sep 10, 2010 at 10:46 UTC |