mufs: keep track of read/written bytes in mufs_read()/mufs_write()

This commit is contained in:
S.J.R. van Schaik 2017-05-29 18:56:34 +02:00
parent abe656c640
commit 849fc17eb0

View file

@ -196,6 +196,7 @@ size_t mufs_read(struct mufs *fs, struct mufs_tree *tree, void *data,
buf += ret;
va += ret;
nbytes += ret;
len -= ret;
}
@ -235,6 +236,7 @@ size_t mufs_write(struct mufs *fs, struct mufs_tree *tree, void *data,
buf += ret;
va += ret;
nbytes += ret;
len -= ret;
}