Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix calculation of stat.st_size in the presence of combined seeks and writes #4698

Merged
merged 2 commits into from
May 15, 2024

Conversation

Arshia001
Copy link
Member

No description provided.

@Arshia001 Arshia001 self-assigned this May 14, 2024
Copy link
Contributor

@maminrayej maminrayej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me. But for this PR to be more inline with other recent fixes to wasix and virtual-fs, I'd like to see a wasi-fyi test that fails before this PR and passes after, so we know this fixes the issue and prevents any future regressions of this sort.

@Arshia001
Copy link
Member Author

@maminrayej technically, wasi-fyi tests weren't created by us, so we should put the test somewhere else I believe.

@syrusakbary
Copy link
Member

@Arshia001 we can add them in wasi-fyi for now and open PRs later, that's ok!

@Arshia001
Copy link
Member Author

@syrusakbary @maminrayej I added the test, can you please re-review and approve?

@Arshia001 Arshia001 enabled auto-merge May 15, 2024 09:10
@Arshia001 Arshia001 merged commit f410690 into main May 15, 2024
61 checks passed
@Arshia001 Arshia001 deleted the fix/fstat_size_with_seek branch May 15, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants