tylla · GitHub

I would like to request a feature to enable the special handling of hard links, namely overwrite them in-place.
I am aware that currently Syncthing doesn't care about hard links, it treats them as regular files and when updating such files it writes to a temp file, deletes the old file and renames the temp file. As a consequence every file that has multiple hard links gets detached from the original content and other links.
But sometimes there is a need to use content with multiple names (in separate directories), and this over-weighs the possible risk of file corruption that could rise from direct updating the content of such files.
I would suggest an option (e.g: inPlaceOverwriteHardLinks or something alike) that can be enabled on any share, so that files with link count greater than 1 are overwritten in place.

Read the original on github.com ↗