-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
wasi-common: deprecate fd_allocate #6217
Conversation
Subscribe to Label Actioncc @kubkon
This issue or pull request has been labeled: "wasi"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
// semantics on those two platforms. WASI never specified the semantics, and our test suite | ||
// never included this operation. We have removed this operation from preview 2, and we are | ||
// no longer supporting it in preview 1 as well. | ||
Err(Error::not_supported()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still removing support for fd_sync
and fd_datasync
, which I think we should keep. Even though they're not portable, there is value in being able to expose what functionality the host might have to applications.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got rid of that change locally but I didnt hit -f
when I pushed it! Sorry.
…TSUP This operation from cloudabi is linux-specific, isn't even supported across all linux filesystems, and has no support on macos or windows. Rather than ship spotty support, it has been removed from preview 2, and we are no longer supporting it in preview 1 as well. The preview 1 implementation will still check if fd is a file, and has rights, just to reject those cases with the errors expected.
rewrite the file_allocate test to just check for failure. remove use of fd_allocate from fd_advise test, and remove test configuration setting used for excluding use of fd_allocate on macos and windows.
4afa25a
to
ccf347e
Compare
This removes features from WASI Preview 1 that were supported inconsistently across platforms.
We are doing so because these features never worked on windows, and can't be supported consistiently on mac and linux. They have all been removed from the WASI Preview 2 spec in progress because of these inconsistencies.
We are not aware of any real-world programs or WASI users that are broken by removing this support.
fd_allocate
This operation from cloudabi is linux-specific, isn't even supported across all linux filesystems, and has no support on macos
or windows. Rather than ship spotty support, it has been removed from preview 2, and this PR removes support for it in preview 1 as well.
The PR also removes flags from the test suite which work around this operation only being available on linux.