Set errno in a few more places
Generate inode value for directories
Update formatting