Skip to content

[WasmFS][NFC] Small simplification in doMkdir#17784

Merged
tlively merged 2 commits intomainfrom
wasmfs-simplify-mkdir
Sep 2, 2022
Merged

[WasmFS][NFC] Small simplification in doMkdir#17784
tlively merged 2 commits intomainfrom
wasmfs-simplify-mkdir

Conversation

@tlively
Copy link
Member

@tlively tlively commented Sep 2, 2022

No description provided.

Update the return type of `getSize` from `size_t` to `off_t`, which allows for
negative error codes. `off_t` is more correct anyway, since in 32-bit mode
it is possible for a file size to be greater than the max value of `size_t`.
Also update the argument to `getSize` from `size_t` to `off_t` to match.

I manually verified that this error handling works with an injected error, but I
was not able to create a test that could trigger the error naturally.
Base automatically changed from wasmfs-getsize-errors to main September 2, 2022 04:29
@tlively tlively merged commit d92a596 into main Sep 2, 2022
@tlively tlively deleted the wasmfs-simplify-mkdir branch September 2, 2022 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants