Moved the call to do_hard_links() and the final directory-permissions
[rsync/rsync.git] / NEWS
1 NEWS for rsync 2.6.1 (UNRELEASED)
2 Protocol: 27 (unchanged)
3 Changes since 2.6.0:
4
5   ENHANCEMENTS:
6
7     * Lower memory use and more optimal transfer of data over
8       the socket (see the INTERNAL section for details).
9
10     * The RSYNC_PROXY environment variable can now contain a
11       "USER:PASS@" prefix before the "HOST:PORT" information.
12       (Bardur Arantsson)
13
14     * The --progress output now mentions how far along in the
15       transfer we are, including both a count of files transferred
16       and a percentage of the total file-count that we're processed.
17
18   BUG FIXES:
19
20     * The --link-dest code now works properly for a non-root user
21       when the UIDs of the source and destination differ and -u was
22       specified, and when the group of the source can't be used on
23       the destination and -g was specified.  (Wayne Davison)
24
25     * Fixed a bug in the handling of -H (hard-links) that might
26       cause the expanded PATH/NAME value of the current item to
27       get overwritten (due to an expanded-name caching bug).
28       (Wayne Davison)
29       
30     * Keep per-file track of the sending of literal data with
31       --partial so that an interrupted transfer doesn't keep a
32       shorter temp file when no new data has been transfered over
33       the wire.  (Wayne Davison)
34
35     * Fixed a byte-order problem in --batch-mode on big-endian
36       machines.  (Jay Fenlason)
37
38     * Fixed configure bug when running "./configure --disable-ipv6".
39       (Wayne Davison)
40
41     * Fixed "make test" bug when build dir is not the source dir.
42
43     * When using --cvs-exclude, the exclude items we get from a
44       directory's .cvsignore file once again only affect that one
45       directory (and not all following directories too).
46
47     * When transferring a file that has group 0 with -g specified
48       (typically via -a) and not enough privs to retain the group,
49       rsync no longer complains about chown failing.
50
51     * When specifying the USER@HOST: prefix for a file, the USER
52       part can now contain an '@', if needed (i.e. the last '@'
53       is used to find the HOST, not the first).
54
55   INTERNAL:
56
57     * Most of the I/O is now buffered, which results in a pretty
58       large speedup when running under MS Windows.  (Craig Barratt)
59
60     * Optimizations to the name-handling/comparing code have made
61       some significant reductions in user-CPU time for large file
62       sets.  (Wayne Davison)
63
64     * Some variable-type cleanup that makes the code more consistent.
65       (Wayne Davison)
66
67     * Reduced memory requirements of hard link preservation.
68       (J.W. Schultz)
69
70     * Implemented a new algorithm for hard-link handling that speeds
71       up the code significantly.  (J.W. Schultz and Wayne Davison)
72
73     * Got rid of support for protocol versions 17 and 18 (which are
74       both over 6 years old).  (Wayne Davison)
75
76     * More optimal data transmission for --hard-links (protocol 28).
77
78     * More optimal data transmission for --checksum (protocol 28).
79
80     * Less memory used for holding --checksum data.
81
82     * Less memory used per-file in the file list.
83
84     * The 2 pipes used between the receiver and generator processes
85       (which are forked on the same machine) were reduced to 1 pipe
86       and the protocol improved so that (1) it is now impossible to
87       have the "redo" pipe fill up and hang rsync, and (2) trailing
88       messages from the receiver don't get lost on their way through
89       the generator over to the sender (the latter mainly affected
90       hard-link messages).  (Wayne Davison)
91
92     * The reading & writing of the file list in batch-mode is now
93       handled by the same code that sends & receives the list over
94       the wire.  This makes it much easier to maintain.
95
96 \f
97 NEWS for rsync 2.6.0 (1 Jan 2004)
98 Protocol: 27 (changed)
99 Changes since 2.5.7:
100
101   ENHANCEMENTS:
102
103     * "ssh" is now the default remote shell for rsync.  If you want to
104       change this, configure like this:  "./configure --with-rsh=rsh".
105
106     * Added --files-from, --no-relative, --no-implied-dirs, and --from0.
107       Note that --from0 affects the line-ending character for all the
108       files read by the --*-from options. (Wayne Davison)
109
110     * Length of csum2 is now per-file starting with protocol version
111       27. (J.W. Schultz)
112
113     * Per-file dynamic block size is now sqrt(file length).  The
114       per-file checksum size is determined according to an algorithm
115       provided by Donovan Baarda which reduces the probability of rsync
116       algorithm corrupting data and falling back using the whole md4
117       checksums. (J.W. Schultz, Donovan Baarda)
118
119     * The --stats option no longer includes the (debug) malloc summary
120       unless the verbose option was specified at least twice.
121
122     * Added a new error/warning code for when files vanish from the
123       sending side.  Made vanished source files not interfere with the
124       file-deletion pass when --delete-after was specified.
125
126     * Various trailing-info sections are now preceded by a newline.
127
128   BUG FIXES:
129
130     * Fixed several exclude/include matching bugs when using wild-cards.
131       This has a several user-visible effects, all of which make the
132       matching more consistent and intuitive.  This should hopefully not
133       cause anyone problems since it makes the matching work more like
134       what people are expecting. (Wayne Davison)
135
136       - A pattern with a "**" no longer causes a "*" to match slashes.
137         For example, with "/*/foo/**", "foo" must be 2 levels deep.
138         [If your string has BOTH "*" and "**" wildcards, changing the
139         "*" wildcards to "**" will provide the old behavior in all
140         versions.]
141
142       - "**/foo" now matches at the base of the transfer (like /foo
143         does).  [Use "/**/foo" to get the old behavior in all versions.]
144
145       - A non-anchored wildcard term floats to match beyond the base of
146         the transfer.  E.g. "CVS/R*" matches at the end of the path,
147         just like the non-wildcard term "CVS/Root" does. [Use "/CVS/R*"
148         to get the old behavior in all versions.]
149
150       - Including a "**" in the match term causes it to be matched
151         against the entire path, not just the name portion, even if
152         there aren't any interior slashes in the term.  E.g. "foo**bar"
153         would exclude "/path/foo-bar" (just like before) as well as
154         "/foo-path/baz-bar" (unlike before).  [Use "foo*bar" to get the
155         old behavior in all versions.]
156
157     * The exclude list specified in the daemon's config file is now
158       properly applied to the pulled items no matter how deep the
159       user's file-args are in the source tree.  (Wayne Davison)
160
161     * For protocol version >= 27, mdfour_tail() is called when the
162       block size (including checksum_seed) is a multiple of 64.
163       Previously it was not called, giving the wrong MD4 checksum.
164       (Craig Barratt)
165
166     * For protocol version >= 27, a 64 bit bit counter is used in
167       mdfour.c as required by the RFC.  Previously only a 32 bit bit
168       counter was used, causing incorrect MD4 file checksums for
169       file sizes >= 512MB - 4.  (Craig Barratt)
170
171     * Fixed a crash bug when interacting with older rsync versions and
172       multiple files of the same name are destined for the same dir.
173       (Wayne Davison)
174
175     * Keep tmp names from overflowing MAXPATHLEN.
176
177     * Make --link-dest honor the absence of -p, -o, and -g.
178
179     * Made rsync treat a trailing slash in the destination in a more
180       consistent manner.
181
182     * Fixed file I/O error detection.  (John Van Essen)
183
184     * Fixed bogus "malformed address {hostname}" message in rsyncd log
185       when checking IP address against hostnames from "hosts allow"
186       and "hosts deny" parameters in config file.
187
188     * Print heap statistics when verbose >= 2 instead of when >= 1.
189
190     * Fixed a compression (-z) bug when syncing a mostly-matching file
191       that contains already-compressed data.  (Yasuoka Masahiko and
192       Wayne Davison)
193
194     * Fixed a bug in the --backup code that could cause deleted files
195       to not get backed up.
196
197     * When the backup code makes new directories, create them with mode
198       0700 instead of 0755 (since the directory permissions in the
199       backup tree are not yet copied from the main tree).
200
201     * Call setgroups() in a more portable manner.
202
203     * Improved file-related error messages to better indicate exactly
204       what pathname failed. (Wayne Davison)
205
206     * Fixed some bugs in the handling of --delete and --exclude when
207       using the --relative (-R) option. (Wayne Davison)
208
209     * Fixed bug that prevented regular files from replacing
210       special files and caused a directory in --link-dest or
211       --compare-dest to block the creation of a file with the
212       same path.  A directory still cannot be replaced by a
213       regular file unless --delete specified.  (J.W. Schultz)
214
215     * Detect and report when open or opendir succeed but read and
216       readdir fail caused by network filesystem issues and truncated
217       files.  (David Norwood, Michael Brown, J.W. Schultz)
218
219     * Added a fix that should give ssh time to restore the tty settings
220       if the user presses Ctrl-C at an ssh password prompt.
221
222   INTERNAL:
223
224     * Eliminated vestigial support for old versions that we stopped
225       supporting. (J.W. Schultz)
226
227     * Simplified some of the option-parsing code. (Wayne Davison)
228
229     * Some cleanup made to the exclude code, as well as some new
230       defines added to enhance readability. (Wayne Davison)
231
232     * Changed the protocol-version code so that it can interact at a
233       lower protocol level than the maximum supported by both sides.
234       Added an undocumented option, --protocol=N, to force the value
235       we advertise to the other side (primarily for testing purposes).
236       (Wayne Davison)