Skip to content

clone-dest.diff: hard-linking non-plain files is a bug #14

@socketpair

Description

@socketpair

https://github.com/RsyncProject/rsync-patches/blame/10ab5e57446d10ef641ceb045ef3094e7d2bd439/clone-dest.diff#L154

All non-regular files are hard-linked (when possible).

This is a bug, because in contrast to reflinking, hard-linked files share metadata (like permissions, mtime and so on). That's why this option should not create hardlinks for items like symlinks.

Also, reflink should handle sparse file wisely. I did not test how it works for sparse files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions