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

maybe the symbolic link implementation for fusefs is not correct? #88

Open
ckhung opened this issue May 14, 2023 · 0 comments
Open

maybe the symbolic link implementation for fusefs is not correct? #88

ckhung opened this issue May 14, 2023 · 0 comments

Comments

@ckhung
Copy link

ckhung commented May 14, 2023

Hi @osnr, thanks for this wonderful work! Conclusion first: I think I found the source of quite a few glitches but I don't know how to fix it. Looking at this SO Q/A: symbolic links in FUSE I guess that your implementation of symbolic link is on the wrong side. The c function implementing fuse_operations.getattr should know the semantics of different paths. In particular, it should know that by_title/* and by_window/* are symlinks and therefore should do point 2 that Craig McQueen suggested in the highest score answer. On the browser extension side, setting st_mode to "writable" looks dubious, which I suspect is a workaround you found?

The symptoms that lead me to the investigation and the above suggestions are the following. I am running tabfs on chromium 113 on linux mint LMDE 5 (elsie) on btrfs. Things work fine inside fs/mnt/tabs/by-id/ . It also works fine if the current working directory is fs/mnt/tabs/ and I do ls -l by-title/ . After I do cd by-title, however, almost every command I give generates an "error while loading shared libraries". Each command (ls, cat, python3, ...) complains about a different library. I think that's because the first thing the system tries to do when it needs to resolve the symlinks for each command's required dll, is to call getattr() on the current directory, which does not implement the above suggestions properly.

What do you think?

tabfs-link

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