Add check for low disk inodes

Factor out disk checking into it's own defined type and use that
everywhere.