This repository has been archived by the owner on Oct 19, 2021. It is now read-only.
Use (hard) linking instead of copying, when possible [patch] #21
Labels
Milestone
Comments
"patch-link":
|
Original reporter: Michael Sweet OK, I've implemented this slightly differently; basically, I've updated both copy_file and make_directory to support both optional mode/owner/group and copy_file to try doing a hard link when the mode/owner/group either match the requested values or are optional. The mode/owner/group stuff is needed for Debian and Solaris packages but not for RPM packages, so the speedup will only be applied when safe to do so. See attached patch. |
"str21.patch":
|
michaelrsweet
added a commit
that referenced
this issue
Oct 11, 2017
…n for copies, as current versions of RPM do not support such things (Issue #57)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version: 4.x-feature
Original reporter:
The patch below should help large projects (such as OpenOffice) save a lot of I/O time and disk-space during packaging.
It changes the copy_file function to attempt to use link(2) first, and only proceed to the actual copying of the files, if link fails for any reason.
The text was updated successfully, but these errors were encountered: