]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hardlink: add reflinks support (add --reflinks and --skip-reflinks)
authorKarel Zak <kzak@redhat.com>
Thu, 2 Dec 2021 13:15:49 +0000 (14:15 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 2 Dec 2021 13:15:49 +0000 (14:15 +0100)
commit66a38e97afe5bdbccda3098fc74506f4f1159cc5
tree5096bf2cce5c70a51057a8611f1f7b161ffe8c15
parentd504b862cc36281bc6f41a45509fe78d5b93d42a
hardlink: add reflinks support (add --reflinks and --skip-reflinks)

Let's make XFS and BTRFS users more happy. The option --skip-reflinks
forces hardlink to detect files with shared extends and --reflinks
forces hardlink to create clones (FICLONE ioctl) rather than
hardlinks.

Addresses: https://github.com/util-linux/util-linux/issues/1447
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/hardlink.1.adoc
misc-utils/hardlink.c