Have File::read() return the number of bytes read, similar to write().
Don't sync on every write, we have a sync() method if that's needed.