TODO/possible optimizations
===========================

* forget inode in to_link if link count is 1 before linking
* more debug output when attributes mismatch in handle_file()