]> git.ipfire.org Git - thirdparty/systemd.git/commit
copy: optionally, reproduce hardlinks from source in destination
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Sep 2020 21:00:14 +0000 (23:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Sep 2020 18:21:29 +0000 (20:21 +0200)
commitdd480f7835eaebc809ddc74b343be3bb58d93cd1
tree8427bfc03ac0c225e760b507876669cf2c3b1f1c
parent197db625a30850f4234eed5994bc0e6cd3e7242c
copy: optionally, reproduce hardlinks from source in destination

This is useful for duplicating trees that contain hardlinks: we keep
track of potential hardlinks and try to reproduce them within the
destination tree. (We do not hardlink between source and destination!).

This is useful for trees like ostree images which heavily use hardlinks
and which are otherwise exploded into separate copies of all files when
we duplicate the trees.
src/basic/copy.c
src/basic/copy.h
src/dissect/dissect.c
src/test/test-copy.c