Commit 6a351af
committed
filesystem: Paper over fadvise harmless failure on macos
On macos and ios, fadvise is only implemented for WillNeed and
dispatches via the system-interface crate to the F_RDADVISE fcntl. If
you call WillNeed on an out-of-bounds offset, this fcntl returns
FileTooLarge. Here we paper over this harmless error code to avoid this
needless platform-dependent nonuniformity. Should fix wasmtime for
WebAssembly/wasi-testsuite#178.
prtest:full1 parent 69ef9af commit 6a351af
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
755 | | - | |
756 | | - | |
757 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
758 | 766 | | |
759 | 767 | | |
760 | 768 | | |
| |||
0 commit comments