Note, you need more than the inode to keep track of files: you also need the device (st_dev, not st_rdev as I recall). If all you need is eq? then this will also handle symlinks if you do fstat() after opening. Mind you, I am a bit nervous about the semantics under NFS.