@ -104,6 +104,7 @@ size_t mufs_read(struct mufs_file *file, void *data, size_t len)
if (!(ret = mufs_tree_read(file->tree, data, file->va, len)))
return 0;
ret = min(ret, file->tree->file_size - file->va);
file->va += ret;
return ret;