WebAssembly / WebAssembly/WASI

[v0.3] specify whether hard links work on directories?

Open
#722 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-filesystem
Dominant language
Rust
Stars
5.8k
Forks
333
Avg merge
2d 13h
Merged PRs (30d)
3

Description

POSIX allows for hard links between directories, and also allows the implementation to forbid them: https://pubs.opengroup.org/onlinepubs/009696699/functions/link.html

Linux forbids them, AFAIU.

Should WASI say anything more? For info, Wasmtime currently fails link-at with EPERM on my Linux machine https://man7.org/linux/man-pages/man2/link.2.html#ERRORS, when attempting to make a hard link to a directory.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the referenced POSIX link specification and Linux link(2) documentation, then compare them with WASI's current link-at behavior. The work is done when the WASI specification clearly states whether hard links to directories are supported, forbidden, or implementation-defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
wasm
Domain
operating-systems
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.