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

Add support for hardlink detection and matching #493

Open
scruel opened this issue Apr 8, 2024 · 1 comment
Open

Add support for hardlink detection and matching #493

scruel opened this issue Apr 8, 2024 · 1 comment

Comments

@scruel
Copy link

scruel commented Apr 8, 2024

The main problem here is that mutagen will break all hard links between beta and alpha...
For example, on alpha, we execute:

$ echo aaa > 111
$ ln 111 222
$ cat 222
aaa
$ echo bbb > 222
$ cat 111
bbb

Then start mutagen, wait files got synced on beta, execute:

$ echo ccc > 111
$ cat 111
ccc
$ cat 222
bbb

Now wait files got synced from beta to alpha, execute:

$ cat 111
ccc
$ cat 222
bbb

You can see mutagen just broke the hard link...
It not only will result in doubling the disk space usage, but will also lead to unexpected problems, because hard links excepted to point to the same data block.

Related:
#309

@xenoscopic
Copy link
Member

We'll have to leave this as a known-issue for now. Adding support for hardlink detection/matching (analogous to rsync's -H/--hard-links) is possible, but it would be a fair amount of work.

@xenoscopic xenoscopic changed the title Respect hard link Add support for hardlink detection and matching Apr 25, 2024
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

2 participants