]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hardlink: replace with code from Debian
authorKarel Zak <kzak@redhat.com>
Thu, 4 Feb 2021 09:42:53 +0000 (10:42 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Feb 2021 10:50:21 +0000 (11:50 +0100)
commit2180ecc81b5f7635adbe5412010642e15fa212d3
treecb71b42c19746c06208ff47f2ef116d31b439081
parenta7c22c164b77d07fc3f26571d56ea4d6daefcc89
hardlink: replace with code from Debian

The current version used in util-linux is based on original code from
Jakub Jelinek.

The new version is based on Debian implementation from
https://salsa.debian.org/jak/hardlink.  This new version uses nftw()
to walk on directories tree and organize internal data binary tree
(tsearch() and twalk()). This new version provides more features like
--ignore-{mode,owner,time}, --respect-xattrs, --respect-name,
--include, --keep-oldest, --minimize, --maximize, etc.

Note that the new version uses -f for --respect-name, the old version
uses -f to hardlinking across filesystems (very probably rarely unused
feature).

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