- check for code instead of errno when checking fs errors