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;
|
buf += ret;
|
||||||
va += ret;
|
va += ret;
|
||||||
|
nbytes += ret;
|
||||||
len -= ret;
|
len -= ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -235,6 +236,7 @@ size_t mufs_write(struct mufs *fs, struct mufs_tree *tree, void *data,
|
||||||
|
|
||||||
buf += ret;
|
buf += ret;
|
||||||
va += ret;
|
va += ret;
|
||||||
|
nbytes += ret;
|
||||||
len -= ret;
|
len -= ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue