in reply to Re^3: How to detect if file is in use?
in thread How to detect if file is in use?

Yes you are correct and I over-simplified, Linux::Fuser indeed does compare the device numbers of the file as well as the inode number:

if (my @statinfo = stat $fd) { if (($dev == $statinfo[0]) && ($ino == $statinfo[1]) ) {
You had me worried there for a second ;-)

/J\