Added defines (FLAG_HLINK_EOL, HL_CHECK_MASTER, and HL_SKIP) and changed
[rsync/rsync.git] / NEWS
CommitLineData
823edc68
WD
1NEWS for rsync 2.6.1 (UNRELEASED)
2Protocol: 27 (unchanged)
3Changes since 2.6.0:
4
5 ENHANCEMENTS:
6
0a007489
WD
7 * Lower memory use and more optimal transfer of data over
8 the socket (see the INTERNAL section for details).
9
823edc68
WD
10 * The RSYNC_PROXY environment variable can now contain a
11 "USER:PASS@" prefix before the "HOST:PORT" information.
12 (Bardur Arantsson)
13
b0a93231
WD
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
823edc68
WD
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
a18381ac
WD
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)
823edc68
WD
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
0a007489 33 the wire. (Wayne Davison)
823edc68 34
e7bef922
WD
35 * Fixed a byte-order problem in --batch-mode on big-endian
36 machines. (Jay Fenlason)
37
0a007489
WD
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
66964002
WD
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
b0a93231
WD
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
0c819b76
WD
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
823edc68
WD
55 INTERNAL:
56
86c4601e 57 * Most of the I/O is now buffered, which results in a pretty
a18381ac 58 large speedup when running under MS Windows. (Craig Barratt)
823edc68
WD
59
60 * Optimizations to the name-handling/comparing code have made
0a007489 61 some significant reductions in user-CPU time for large file
823edc68
WD
62 sets. (Wayne Davison)
63
31e7451a
WD
64 * Some variable-type cleanup that makes the code more consistent.
65 (Wayne Davison)
66
279b1c1e 67 * Reduced memory requirements of hard link preservation.
0a007489 68 (J.W. Schultz)
279b1c1e 69
f8ebdf92
WD
70 * Implemented a new algorithm for hard-link handling that speeds
71 up the code significantly. (J.W. Schultz and Wayne Davison)
72
1a62c49d 73 * Got rid of support for protocol versions 17 and 18 (which are
0a007489 74 both over 6 years old). (Wayne Davison)
aa953c32 75
1a62c49d
WD
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
0a007489
WD
82 * Less memory used per-file in the file list.
83
442743b8 84 * The 2 pipes used between the receiver and generator processes
b0a93231
WD
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.
442743b8 95
823edc68 96\f
276877cf 97NEWS for rsync 2.6.0 (1 Jan 2004)
195bd906 98Protocol: 27 (changed)
276877cf 99Changes since 2.5.7:
89855e78
WD
100
101 ENHANCEMENTS:
102
e636af6b
WD
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
58665d23 106 * Added --files-from, --no-relative, --no-implied-dirs, and --from0.
89855e78 107 Note that --from0 affects the line-ending character for all the
d00daf1f 108 files read by the --*-from options. (Wayne Davison)
89855e78 109
9e83fa99 110 * Length of csum2 is now per-file starting with protocol version
58665d23 111 27. (J.W. Schultz)
195bd906 112
9e83fa99
WD
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
58665d23 117 checksums. (J.W. Schultz, Donovan Baarda)
195bd906 118
727fa368
WD
119 * The --stats option no longer includes the (debug) malloc summary
120 unless the verbose option was specified at least twice.
121
d00daf1f
WD
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
9e83fa99
WD
126 * Various trailing-info sections are now preceded by a newline.
127
89855e78
WD
128 BUG FIXES:
129
f2fe4903
WD
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
592f4696
WD
136 - A pattern with a "**" no longer causes a "*" to match slashes.
137 For example, with "/*/foo/**", "foo" must be 2 levels deep.
faf11086
WD
138 [If your string has BOTH "*" and "**" wildcards, changing the
139 "*" wildcards to "**" will provide the old behavior in all
140 versions.]
592f4696 141
52fa4d78
WD
142 - "**/foo" now matches at the base of the transfer (like /foo
143 does). [Use "/**/foo" to get the old behavior in all versions.]
f2fe4903 144
52fa4d78 145 - A non-anchored wildcard term floats to match beyond the base of
f2fe4903 146 the transfer. E.g. "CVS/R*" matches at the end of the path,
52fa4d78
WD
147 just like the non-wildcard term "CVS/Root" does. [Use "/CVS/R*"
148 to get the old behavior in all versions.]
f2fe4903
WD
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
52fa4d78
WD
154 "/foo-path/baz-bar" (unlike before). [Use "foo*bar" to get the
155 old behavior in all versions.]
f2fe4903 156
52e628a8
WD
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
d00daf1f 159 user's file-args are in the source tree. (Wayne Davison)
52e628a8 160
da2bcdd1 161 * For protocol version >= 27, mdfour_tail() is called when the
58665d23
WD
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)
256a9e37 165
da2bcdd1 166 * For protocol version >= 27, a 64 bit bit counter is used in
58665d23
WD
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)
195bd906 170
da2bcdd1 171 * Fixed a crash bug when interacting with older rsync versions and
89855e78
WD
172 multiple files of the same name are destined for the same dir.
173 (Wayne Davison)
174
58665d23 175 * Keep tmp names from overflowing MAXPATHLEN.
89855e78 176
da2bcdd1 177 * Make --link-dest honor the absence of -p, -o, and -g.
fab1f889 178
8113a033
WD
179 * Made rsync treat a trailing slash in the destination in a more
180 consistent manner.
181
9b746433 182 * Fixed file I/O error detection. (John Van Essen)
fab1f889 183
256a9e37
WD
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
90045413
WD
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
d594399c
WD
194 * Fixed a bug in the --backup code that could cause deleted files
195 to not get backed up.
196
860bdd45
WD
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
2c873122
WD
201 * Call setgroups() in a more portable manner.
202
aa6dc37c
WD
203 * Improved file-related error messages to better indicate exactly
204 what pathname failed. (Wayne Davison)
2c873122
WD
205
206 * Fixed some bugs in the handling of --delete and --exclude when
207 using the --relative (-R) option. (Wayne Davison)
4a7ee79d 208
d89a3a31
S
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
6a7cc46c 215 * Detect and report when open or opendir succeed but read and
52fa4d78 216 readdir fail caused by network filesystem issues and truncated
6a7cc46c
S
217 files. (David Norwood, Michael Brown, J.W. Schultz)
218
65653a65
WD
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
89855e78
WD
222 INTERNAL:
223
58665d23 224 * Eliminated vestigial support for old versions that we stopped
89855e78
WD
225 supporting. (J.W. Schultz)
226
58665d23 227 * Simplified some of the option-parsing code. (Wayne Davison)
89855e78 228
52e628a8
WD
229 * Some cleanup made to the exclude code, as well as some new
230 defines added to enhance readability. (Wayne Davison)
231
aa6dc37c
WD
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)