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

Semantics of readdir's add_entry argument #196

Open
nrath-js opened this issue Nov 27, 2024 · 0 comments · May be fixed by #199
Open

Semantics of readdir's add_entry argument #196

nrath-js opened this issue Nov 27, 2024 · 0 comments · May be fixed by #199

Comments

@nrath-js
Copy link

I have not been able to find any documentation for the add_entry: &mut dyn FnMut(DirEntry<'_>) -> Result<usize> argument that is passed to readdir. Did I miss anything?

My best guess is that the return value represents a length, and that I need to check that the total length does not exceed the value of the size parameter. However, I am not sure if the return value is the length of the most recent entry (so I have to accumulate the total), or the total space used, or perhaps the remaining space?

nrath-js added a commit to nrath-js/fuse-backend-rs that referenced this issue Dec 3, 2024
nrath-js added a commit to nrath-js/fuse-backend-rs that referenced this issue Dec 3, 2024
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 a pull request may close this issue.

1 participant