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

Implement FUSE symlink #231

Open
radumarias opened this issue Nov 14, 2024 · 0 comments
Open

Implement FUSE symlink #231

radumarias opened this issue Nov 14, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@radumarias
Copy link
Member

radumarias commented Nov 14, 2024

specs: https://github.com/libfuse/libfuse/blob/master/include/fuse.h#L385

You need to implement https://github.com/Sherlock-Holo/fuse3/blob/17eae92592c4aab5a9dd30d5b09a92987c0d4823/src/raw/filesystem.rs#L68 in https://github.com/radumarias/rencfs/blob/main/src/mount/linux.rs#L260 and call similar names function from https://github.com/radumarias/rencfs/blob/main/src/encryptedfs.rs#L548 to implement the actual functionality.

How to implement
When creating a symlink to a file you save in the file content in contents folder the path to which it points. When accessing this symlink you will actually forward all operations to the file in the path.

For now allow src to only be file, as it's easier to implement, we'll handle that case in the future. Meaning you can have dir > dir.

@radumarias radumarias added the good first issue Good for newcomers label Nov 14, 2024
@Ropler6 Ropler6 assigned Ropler6 and unassigned Ropler6 Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants