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 hardlink #230

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

Implement FUSE hardlink #230

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

https://chatgpt.com/share/6735c9c5-8c80-8003-a6e8-f56c84120216

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

You need to implement https://github.com/Sherlock-Holo/fuse3/blob/17eae92592c4aab5a9dd30d5b09a92987c0d4823/src/raw/filesystem.rs#L127 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 hardlink to a file you save in the file content in contents folder the inode to which it points. When accessing this hardlink you will actually forward all operations to the file in the inode.

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
@radumarias radumarias changed the title Implement FUSE hardlinks Implement FUSE hardlink Nov 14, 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

1 participant