X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/ff318e90bdd927361ae3b396d7fc311a901a7959..c2f699cc6bfb241c97cc53dfe6bfd0ea0385456c:/link-by-hash.diff diff --git a/link-by-hash.diff b/link-by-hash.diff index 03a0304..ed8bf5b 100644 --- a/link-by-hash.diff +++ b/link-by-hash.diff @@ -1,20 +1,20 @@ -After applying this patch, run these commands for a successful build: - - ./prepare-source - ./configure (optional if already run) - make - -Jason M. Felice writes: +Jason M. Felice wrote: This patch adds the --link-by-hash=DIR option, which hard links received files in a link farm arranged by MD4 file hash. The result is that the system will only store one copy of the unique contents of each file, regardless of the file's name. +To use this patch, run these commands for a successful build: + + patch -p1 2) rprintf(FINFO, "renaming %s to %s\n", fnametmp, fname); @@ -549,7 +549,7 @@ the file's name. ret == -2 ? "copy" : "rename", --- old/rsync.h +++ new/rsync.h -@@ -644,6 +644,14 @@ struct stats { +@@ -651,6 +651,14 @@ struct stats { int current_file_index; }; @@ -566,7 +566,7 @@ the file's name. #include "byteorder.h" --- old/rsync.yo +++ new/rsync.yo -@@ -365,6 +365,7 @@ to the detailed description below for a +@@ -366,6 +366,7 @@ to the detailed description below for a --compare-dest=DIR also compare received files relative to DIR --copy-dest=DIR ... and include copies of unchanged files --link-dest=DIR hardlink to files in DIR when unchanged