Stream: git-wasmtime

Topic: wasmtime / PR #14381 Tweak illumos fallback for file-type...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 20:24):

alexcrichton opened PR #14381 from alexcrichton:different-dirent-d-type-fallback to bytecodealliance:main:

This commit adjusts a fallback that happens when reading a directory and reporting the names/file-types of what's contained. Previously illumos would do a separate syscall to find the file type since the dirent doesn't have the information and other platforms would use the d_type field. Turns out though that apparently a number of filesystems also don't fill in d_type so it's not uncommon to run into this. The WASI API, subjectively to me at least, is a best-effort way of letting the guest know the information that the host already has, so there's no need to be 100% accurate. Instead this changes the illumos syscall fallback to just always using the Unknown file type which will also be consistent with what various filesystems on other Unix systems would report anyway too.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please review the Bytecode Alliance's AI tool usage policy at
https://github.com/bytecodealliance/governance/blob/main/AI_TOOL_POLICY.md

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 20:24):

alexcrichton requested pchickey for a review on PR #14381.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 20:24):

alexcrichton requested wasmtime-wasi-reviewers for a review on PR #14381.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 20:25):

:thumbs_up: pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 20:33):

alexcrichton has enabled auto merge for PR #14381.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 20:34):

alexcrichton added PR #14381 Tweak illumos fallback for file-type of directory entries to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 21:00):

:check: alexcrichton merged PR #14381.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2026 at 21:00):

alexcrichton removed PR #14381 Tweak illumos fallback for file-type of directory entries from the merge queue.


Last updated: Oct 11 2026 at 04:10 UTC