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

lofs: multiple readdir problems #36

Open
djs55 opened this issue Nov 30, 2015 · 0 comments
Open

lofs: multiple readdir problems #36

djs55 opened this issue Nov 30, 2015 · 0 comments

Comments

@djs55
Copy link
Member

djs55 commented Nov 30, 2015

On #35 @dsheets comments, " I'd recommend using the dirent index as the read length of directories instead of the 9p stat struct length. This will make progressive listing of directories much faster as stats to all prior entries will not be required (just drop the first offset list items). There is no requirement for directory listing consistency so a snapshot is not required. What if a directory contains more than 1024 entries?"

We could also consider being more strict about what we accept: in particular the 9P spec says that offset must be either 0 (seek to beginning) or the previous offset + the previous data length.

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

No branches or pull requests

1 participant