Skip to content

Fix for getdents (readdir) under NODEFS. #16124

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

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Fix for getdents (readdir) under NODEFS. #16124

merged 1 commit into from
Jan 28, 2022

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 27, 2022

The test case here was taken from #15308.

The main bugfix here is to use stream.node rather than just stream
when attempting to get node properties from a stream. There were some
extra properties added to the streams back in #15167, but this change
reverts that and instread fixes up the streams returned by NODERAWFS
such that they have the correct/expected fields.

@sbc100 sbc100 requested review from kripken and dschuff January 27, 2022 02:35
@sbc100 sbc100 force-pushed the fix_nodefs_readdir branch from e07a267 to 448407b Compare January 27, 2022 02:37
@dschuff
Copy link
Member

dschuff commented Jan 27, 2022

It looks good to me? I don't really know this code very well though.

@sbc100 sbc100 force-pushed the fix_nodefs_readdir branch from 448407b to d698e09 Compare January 27, 2022 21:46
Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

I don't have a strong understanding of this code, but lgtm and the test suite should cover us here.

The test case here was taken from #15308.

The main bugfix here is to use `stream.node` rather than just `stream`
when attempting to get node properties from a stream.  There were some
extra properties added to the streams back in #15167, but this change
reverts that and instread fixes up the streams returned by NODERAWFS
such that they have the correct/expected fields.
@sbc100 sbc100 force-pushed the fix_nodefs_readdir branch from d698e09 to bf21992 Compare January 27, 2022 22:46
@sbc100 sbc100 merged commit e35d017 into main Jan 28, 2022
@sbc100 sbc100 deleted the fix_nodefs_readdir branch January 28, 2022 00:10
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.

3 participants