mufs: keep track of read/written bytes in mufs_read()/mufs_write()
This commit is contained in:
parent
abe656c640
commit
849fc17eb0
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue