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

[MacOS] DwarFS mount not seen through Finder #211

Closed
rraihansaputra opened this issue Apr 13, 2024 · 5 comments
Closed

[MacOS] DwarFS mount not seen through Finder #211

rraihansaputra opened this issue Apr 13, 2024 · 5 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@rraihansaputra
Copy link

On mounting a valid DwarFS file, the files and directory can be seen on terminal and other programs (ex: VSCode) but Finder only shows the top level directories and no files.

Can provide more data/debugging if needed. AFAIK this relates to the communication between MacFUSE and DwarFS.

@mhx
Copy link
Owner

mhx commented Apr 13, 2024

Hi and thanks for your feedback!

This is really odd. TBH, I'm not sure if I've notice this before, but I can definitely reproduce it here to some extent (I can see all directories, not only top level, but no files / links). I have absolutely no idea why this is happening.

I'd definitely appreciate any hints as to what could be missing in the interface between DwarFS and macFUSE.

I likely won't have time to dig into this myself before next week.

@mhx
Copy link
Owner

mhx commented Apr 13, 2024

I've found the problem: the getxattr() call works quite differently on Linux and macOS.

On Linux, getxattr() returns ENODATA if an attribute doesn't exist, and that's also what the DwarFS FUSE driver returns.

On macOS, it is expected to return ENOATTR if an attribute doesn't exist. The macOS call doesn't even list ENODATA, at the same time, ENOATTR doesn't seem to exist on Linux.

This will be fixed in the next release.

@mhx mhx self-assigned this Apr 13, 2024
@mhx mhx added the bug Something isn't working label Apr 13, 2024
@mhx mhx added this to the v0.9.8 milestone Apr 13, 2024
@mhx
Copy link
Owner

mhx commented Apr 14, 2024

You can actually work around the problem by using macFUSE's noapplexattr option, i.e.:

dwarfs image.dwarfs mountpoint -o noapplexattr

@mhx
Copy link
Owner

mhx commented Apr 14, 2024

This should be fixed in v0.9.8, please re-open if there is still a problem.

@mhx mhx closed this as completed Apr 14, 2024
@rraihansaputra
Copy link
Author

Thank you for the quick response and the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants