-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(preview1): implement fd_readdir
#6453
Conversation
fd_readdir
cc @pchickey |
0294f48
to
8f761ba
Compare
Subscribe to Label Actioncc @kubkon
This issue or pull request has been labeled: "wasi"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
8f761ba
to
f37599d
Compare
f42b436
to
6e58532
Compare
8f19fcc
to
0498e3f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
( | ||
types::Dirent { | ||
d_next: 2u64.to_le(), | ||
d_ino: fd_inode.to_le(), // NOTE: legacy implementation returns `fd` inode here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is unfortunate, I never knew about this bug.
I am not sure what to do with this. We decided to get rid of providing ..
in the entries stream in preview 2, because it doesn't really fit the capability model - a preopen doesn't have a ..
. I don't think we have any way to implement this correctly, so I guess we just have to hope that this bug doesn't cause problems for userland
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
duh Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
prtest:full Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
0498e3f
to
e03645d
Compare
Rebased and addressed feedback @pchickey |
Refs #6370 #6454
This includes a few somewhat related fixes in the host adapter, including
fd_close
fix bringing the host adapter almost to feature parity with component adapter.@pchickey will handle sockets and polling, at which point this whole work should be done