Skip to content

hermit/fs: Return unsupported() instead of from_raw_os_error(22)#158247

Open
mkroening wants to merge 1 commit into
rust-lang:mainfrom
hermit-os:hermit-fs-unsupported
Open

hermit/fs: Return unsupported() instead of from_raw_os_error(22)#158247
mkroening wants to merge 1 commit into
rust-lang:mainfrom
hermit-os:hermit-fs-unsupported

Conversation

@mkroening

Copy link
Copy Markdown
Contributor

Currently, Hermit uses a mix of Err(Error::from_raw_os_error(22)) (EINVAL) and unsupported() for unsupported operations.

This PR makes Hermit consistently use unsupported() everywhere. This should address #158168 (comment) and #158168 (comment).

r? clarfonthey

CC: @stlankes

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Jun 22, 2026
@rust-log-analyzer

This comment has been minimized.

@mkroening

mkroening commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

The CI failure is spurious and caused by GitHub. I will force-push to rerun CI.

@mkroening mkroening force-pushed the hermit-fs-unsupported branch from 5177331 to d54558f Compare June 22, 2026 13:04
@clarfonthey

Copy link
Copy Markdown
Contributor

@rustbot blocked

Would prefer to merge #158168 first; wouldn't mind you rebasing on that PR ahead of time.

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-blocked Status: Blocked on something else such as an RFC or other implementation work. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants