robojeb/AgFS

Implement Read

Closed this issue · 1 comments

Now that we can read directories and we can get file metadata, we should write agfs_read so that we can get data from the remote server.

I am considering sending a flag that states whether or not there is more data after the current read buffer (in case the read cannot read all of the file data into the stream). It also appears that read takes in an ssize_t and returns an ssize_t which are both signed long ints (most likely signed 64 bit integers). We might want to consider using this to our advantage.

Read has been implemented as of b4c3eb1