mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
b467f8b2ef
Previously, graphdriver/copy would improperly copy hardlinks as just regular files. This patch changes that behaviour, and instead the code now keeps track of inode numbers, and if it sees the same inode number again during the copy loop, it hardlinks it, instead of copying it. Signed-off-by: Sargun Dhillon <sargun@sargun.me> |
||
---|---|---|
.. | ||
copy.go | ||
copy_test.go |