Compare device/inodes correctly.