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

Handle special dot and dotdot files #76

Merged
merged 1 commit into from
Oct 25, 2019
Merged

Conversation

ricarkol
Copy link
Contributor

@ricarkol ricarkol commented Apr 21, 2018

Handle dot and dotdot special files created with other FAT implementations when walking directory trees. Noticed this when trying to walk a disk image created by mkfs.fat + mount + mkdir on my linux box using the fat binary. More specifically, tried this test https://gist.github.com/ricarkol/f72687245e143bc04ba4814c6088d13e. That test creates 41 files in 3 levels of subdirs (counting dot's and dotdot's). Without this change, only 9 files are listed, and the fat bin raises an error: "fat: a directory in the path does not exist".

Also, notice that this change doesn't complete the support for dot and dotdot special files. For example, two pending features are missing: create dot and dotdot special files on mkdir, and find files with paths like /a/b/../c.

@ricarkol ricarkol force-pushed the handle_dotdot branch 2 times, most recently from 6ccdf18 to c59e1cf Compare April 21, 2018 16:08
@avsm
Copy link
Member

avsm commented Mar 12, 2019

@djs55 would you have a chance to review this so i can bundle it into the next release

Copy link
Member

@djs55 djs55 left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@ricarkol
Copy link
Contributor Author

Yaay! thanks for the review

@hannesm
Copy link
Member

hannesm commented Oct 25, 2019

this was approved half a year ago, and looks fine to me. I'll just merge it :)

@hannesm hannesm merged commit eb280e3 into mirage:master Oct 25, 2019
@ricarkol
Copy link
Contributor Author

Thanks @hannesm

samoht added a commit to samoht/opam-repository that referenced this pull request Nov 21, 2019
CHANGES:

- fix inconsistent sector size between block and fs (mirage/ocaml-fat#81, @ehirdoy)
- adapt to newer MirageOS 3.7.1 interfaces (mirage/ocaml-fat#82, @hannesm)
- Handle special dot and dotdot files (mirage/ocaml-fat#76, @ricarkol)
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.

4 participants