Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use nanoseconds in filestat for directories #4359

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

yagehu
Copy link
Contributor

@yagehu yagehu commented Dec 17, 2023

This commit fixes the filestat type which contains three timestamps. Per WASI spec, they should be in nanoseconds. This is only a problem for directories.

fixes #4358

@yagehu yagehu force-pushed the yagehu/filestat-times branch from 9059f61 to 81b721e Compare December 17, 2023 17:45
Copy link
Contributor

@theduke theduke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yagehu apologies for the long delay, and thanks a lot for the fix, much appreciated!

lib/virtual-fs/src/mem_fs/filesystem.rs Show resolved Hide resolved
This commit fixes the `filestat` type which contains three timestamps.
Per [WASI spec], they should be in nanoseconds.  This is only a problem
for directories.

[WASI spec]: https://github.com/WebAssembly/WASI/blob/main/legacy/preview1/docs.md#-timestamp-u64

Signed-off-by: Yage Hu <[email protected]>
@theduke theduke force-pushed the yagehu/filestat-times branch from 81b721e to d2f2d05 Compare January 15, 2024 20:49
@theduke theduke enabled auto-merge (rebase) January 15, 2024 20:49
@theduke theduke merged commit 809b434 into wasmerio:master Jan 15, 2024
51 of 52 checks passed
@yagehu yagehu deleted the yagehu/filestat-times branch April 16, 2024 04:21
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.

filestat should contain timestamps in nanoseconds, not seconds
3 participants