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 issue with path_rename moving down 1 directory #1764

Merged
merged 5 commits into from
Nov 16, 2020
Merged

Conversation

MarkMcCaskey
Copy link
Contributor

@MarkMcCaskey MarkMcCaskey commented Oct 27, 2020

Resolves #1759

Due to file metadata caching in WasiFS this behavior isn't easily observable with tests because as far as the rest of the WASI calls are concerned the file is in the right place:

perhaps we should consider removing some of that caching, but it's a large change and may have other implications...
Ideally we do want to not be dependent on the file system when dealing with open files... the issue here is that when we rename it, we still consider it to be a file that WasiFS is actively managing. This maybe relatively easy to fix on its own

Review

  • Add a short description of the the change to the CHANGELOG.md file

@syrusakbary
Copy link
Member

Add test?

@MarkMcCaskey
Copy link
Contributor Author

Add test?

Yeah been working on it, but as I said, it's not easily observable from inside our WASI system. I think I've probably found a way to test it though

@Hywan Hywan added bug Something isn't working 📦 lib-wasi About wasmer-wasi labels Oct 27, 2020
Mark McCaskey and others added 4 commits November 16, 2020 12:23
bf069e946 Update path rename WASI test to ensure that things work as expected
dd93cb4d6 Clarify that `wasm-opt` comes from binaryen

git-subtree-dir: tests/wasi-wast
git-subtree-split: bf069e94621d6a72cdcaf5e30844cdbe19b75530
@MarkMcCaskey
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Nov 16, 2020

@bors bors bot merged commit f79fb9f into master Nov 16, 2020
@bors bors bot deleted the fix/fd-rename-wasi branch November 16, 2020 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📦 lib-wasi About wasmer-wasi
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renaming a file unexpectedly places it outside of pre-opened directory
4 participants