This repository was archived by the owner on Sep 8, 2025. It is now read-only.
Commit cf88a7c
authored
feat(wasip3): implement
* refactor: move `File` and `Dir` to top-level
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* refactor: extract filesystem utilities to top-level
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* chore: update `wasi:filesystem@0.3` WIT
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* chore: port p2 filesystem test
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* feat(wasip3): add filesystem stubs
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* chore(wasip3): use trapping errors is fs
for consistency with refactors for sockets
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* feat(wasip3): implement `wasi:filesystem` without reads
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* chore: remove unused enums
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* refactor: remove `NewTimestamp` enum
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* refactor(p2): check FD types before permissions
Previously, `wasi:filesystem` functions taking two directory FDs as arguments,
would check permissions on the source directory before ensuring that
target FD is also a directory. This order has now been changed and first
implementations ensure that both FDs are directories and only then check
permissions.
This should not have any functional differences in guest applications
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* refactor(fs): remove `Advice` enum
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* refactor(sockets): remove `ResultWriteTask`
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* feat(wasip3): implement `wasi:filesystem` reads
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* chore(p3): ignore FS test due to runtime panic
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* fix: make `filesystem` module public
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* feat(wasip3): abort filesystem tasks on descriptor drop
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* Revert "feat(wasip3): abort filesystem tasks on descriptor drop"
This reverts commit 40415b52f79a33c376a2a875ffecb1d0a01c7903.
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* fix: avoid double `Accessor` entry
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* fix(p3): correctly handle FS I/O
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* fix(fs-p3): expect unreachable enums on Windows
prtest:full
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* fix(p3): correctly handle Windows read_dir
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
* refactor: reorder read_dir conditional
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
---------
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>wasi:filesystem (#11406)1 parent c42ed27 commit cf88a7c
23 files changed
Lines changed: 2452 additions & 792 deletions
File tree
- ci
- crates
- test-programs/src/bin
- wasi
- src
- p2
- host
- p3
- cli
- clocks
- filesystem
- random
- sockets
- host/types
- wit/deps/filesystem
- tests/all/p3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 56 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
0 commit comments