Debian Codegraph @

TODO

raw
1 -*- indented-text -*-
2
3 FEATURES ------------------------------------------------------------
4 Use chroot only if supported
5 Allow supplementary groups in rsyncd.conf 2002/04/09
6 Handling IPv6 on old machines
7 Other IPv6 stuff
8 Add ACL support 2001/12/02
9 proxy authentication 2002/01/23
10 SOCKS 2002/01/23
11 FAT support
12 --diff david.e.sewell 2002/03/15
13 Add daemon --no-fork option
14 Create more granular verbosity 2003/05/15
15
16 DOCUMENTATION --------------------------------------------------------
17 Keep list of open issues and todos on the web site
18
19 LOGGING --------------------------------------------------------------
20 Memory accounting
21 Improve error messages
22 Better statistics Rasmus 2002/03/08
23 Perhaps flush stdout like syslog
24 Log child death on signal
25 verbose output David Stein 2001/12/20
26 internationalization
27
28 DEVELOPMENT --------------------------------------------------------
29 Handling duplicate names
30 Use generic zlib 2002/02/25
31 TDB 2002/03/12
32 Splint 2002/03/12
33
34 PERFORMANCE ----------------------------------------------------------
35 Traverse just one directory at a time
36 Allow skipping MD4 file_sum 2002/04/08
37 Accelerate MD4
38
39 TESTING --------------------------------------------------------------
40 Torture test
41 Cross-test versions 2001/08/22
42 Test on kernel source
43 Test large files
44 Create mutator program for testing
45 Create configure option to enable dangerous tests
46 Create pipe program for testing
47 Create test makefile target for some tests
48
49 RELATED PROJECTS -----------------------------------------------------
50 rsyncsh
51 https://rsync.samba.org/rsync-and-debian/
52 rsyncable gzip patch
53 rsyncsplit as alternative to real integration with gzip?
54 reverse rsync over HTTP Range
55
56
57
58 FEATURES ------------------------------------------------------------
59
60
61 Use chroot only if supported
62
63 If the platform doesn't support it, then don't even try.
64
65 If running as non-root, then don't fail, just give a warning.
66 (There was a thread about this a while ago?)
67
68 https://lists.samba.org/pipermail/rsync/2001-August/thread.html
69 https://lists.samba.org/pipermail/rsync/2001-September/thread.html
70
71 -- --
72
73
74 Allow supplementary groups in rsyncd.conf 2002/04/09
75
76 Perhaps allow supplementary groups to be specified in rsyncd.conf;
77 then make the first one the primary gid and all the rest be
78 supplementary gids.
79
80 -- --
81
82
83 Handling IPv6 on old machines
84
85 The KAME IPv6 patch is nice in theory but has proved a bit of a
86 nightmare in practice. The basic idea of their patch is that rsync
87 is rewritten to use the new getaddrinfo()/getnameinfo() interface,
88 rather than gethostbyname()/gethostbyaddr() as in rsync 2.4.6.
89 Systems that don't have the new interface are handled by providing
90 our own implementation in lib/, which is selectively linked in.
91
92 The problem with this is that it is really hard to get right on
93 platforms that have a half-working implementation, so redefining
94 these functions clashes with system headers, and leaving them out
95 breaks. This affects at least OSF/1, RedHat 5, and Cobalt, which
96 are moderately important.
97
98 Perhaps the simplest solution would be to have two different files
99 implementing the same interface, and choose either the new or the
100 old API. This is probably necessary for systems that e.g. have
101 IPv6, but gethostbyaddr() can't handle it. The Linux manpage claims
102 this is currently the case.
103
104 In fact, our internal sockets interface (things like
105 open_socket_out(), etc) is much narrower than the getaddrinfo()
106 interface, and so probably simpler to get right. In addition, the
107 old code is known to work well on old machines.
108
109 We could drop the rather large lib/getaddrinfo files.
110
111 -- --
112
113
114 Other IPv6 stuff
115
116 Implement suggestions from http://www.kame.net/newsletter/19980604/
117 and ftp://ftp.iij.ad.jp/pub/RFC/rfc2553.txt
118
119 If a host has multiple addresses, then listen try to connect to all
120 in order until we get through. (getaddrinfo may return multiple
121 addresses.) This is kind of implemented already.
122
123 Possibly also when starting as a server we may need to listen on
124 multiple passive addresses. This might be a bit harder, because we
125 may need to select on all of them. Hm.
126
127 -- --
128
129
130 Add ACL support 2001/12/02
131
132 Transfer ACLs. Need to think of a standard representation.
133 Probably better not to even try to convert between NT and POSIX.
134 Possibly can share some code with Samba.
135 NOTE: there is a patch that implements this in the "patches" subdir.
136
137 -- --
138
139
140 proxy authentication 2002/01/23
141
142 Allow RSYNC_PROXY to be http://user:[email protected]:3128/, and do
143 HTTP Basic Proxy-Authentication.
144
145 Multiple schemes are possible, up to and including the insanity that
146 is NTLM, but Basic probably covers most cases.
147
148 -- --
149
150
151 SOCKS 2002/01/23
152
153 Add --with-socks, and then perhaps a command-line option to put them
154 on or off. This might be more reliable than LD_PRELOAD hacks.
155
156 -- --
157
158
159 FAT support
160
161 rsync to a FAT partition on a Unix machine doesn't work very well at
162 the moment. I think we get errors about invalid filenames and
163 perhaps also trying to do atomic renames.
164
165 I guess the code to do this is currently #ifdef'd on Windows;
166 perhaps we ought to intelligently fall back to it on Unix too.
167
168 -- --
169
170
171 --diff david.e.sewell 2002/03/15
172
173 Allow people to specify the diff command. (Might want to use wdiff,
174 gnudiff, etc.)
175
176 Just diff the temporary file with the destination file, and delete
177 the tmp file rather than moving it into place.
178
179 Interaction with --partial.
180
181 Security interactions with daemon mode?
182
183 -- --
184
185
186 Add daemon --no-fork option
187
188 Very useful for debugging. Also good when running under a
189 daemon-monitoring process that tries to restart the service when the
190 parent exits.
191
192 -- --
193
194
195 Create more granular verbosity 2003/05/15
196
197 Control output with the --report option.
198
199 The option takes as a single argument (no whitespace) a
200 comma delimited lists of keywords.
201
202 This would separate debugging from "logging" as well as
203 fine grained selection of statistical reporting and what
204 actions are logged.
205
206 https://lists.samba.org/archive/rsync/2003-May/006059.html
207
208 -- --
209
210 DOCUMENTATION --------------------------------------------------------
211
212
213 Keep list of open issues and todos on the web site
214
215 Linuxdoc looks like the most likely contender. I know DocBook is
216 favoured by some people, but it's so bloody verbose, even with emacs
217 support.
218
219 -- --
220
221 LOGGING --------------------------------------------------------------
222
223
224 Memory accounting
225
226 At exit, show how much memory was used for the file list, etc.
227
228 We also do a weird exponential-growth allocation in flist.c. I'm
229 not sure this makes sense with modern mallocs. At any rate it will
230 make us allocate a huge amount of memory for large file lists.
231
232 -- --
233
234
235 Improve error messages
236
237 If we hang or get SIGINT, then explain where we were up to. Perhaps
238 have a static buffer that contains the current function name, or
239 some kind of description of what we were trying to do. This is a
240 little easier on people than needing to run strace/truss.
241
242 "The dungeon collapses! You are killed." Rather than "unexpected
243 eof" give a message that is more detailed if possible and also more
244 helpful.
245
246 If we get an error writing to a socket, then we should perhaps
247 continue trying to read to see if an error message comes across
248 explaining why the socket is closed. I'm not sure if this would
249 work, but it would certainly make our messages more helpful.
250
251 What happens if a directory is missing -x attributes. Do we lose
252 our load? (Debian #28416) Probably fixed now, but a test case would
253 be good.
254
255 -- --
256
257
258 Better statistics Rasmus 2002/03/08
259
260 <Rasmus>
261 hey, how about an rsync option that just gives you the
262 summary without the list of files? And perhaps gives
263 more information like the number of new files, number
264 of changed, deleted, etc. ?
265
266 <mbp>
267 nice idea there is --stats but at the moment it's very
268 tridge-oriented rather than user-friendly it would be
269 nice to improve it that would also work well with
270 --dryrun
271
272 -- --
273
274
275 Perhaps flush stdout like syslog
276
277 Perhaps flush stdout after each filename, so that people trying to
278 monitor progress in a log file can do so more easily. See
279 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48108
280
281 -- --
282
283
284 Log child death on signal
285
286 If a child of the rsync daemon dies with a signal, we should notice
287 that when we reap it and log a message.
288
289 -- --
290
291
292 verbose output David Stein 2001/12/20
293
294 At end of transfer, show how many files were or were not transferred
295 correctly.
296
297 -- --
298
299
300 internationalization
301
302 Change to using gettext(). Probably need to ship this for platforms
303 that don't have it.
304
305 Solicit translations.
306
307 Does anyone care? Before we bother modifying the code, we ought to
308 get the manual translated first, because that's possibly more useful
309 and at any rate demonstrates desire.
310
311 -- --
312
313 DEVELOPMENT --------------------------------------------------------
314
315 Handling duplicate names
316
317 Some folks would like rsync to be deterministic in how it handles
318 duplicate names that come from mering multiple source directories
319 into a single destination directory; e.g. the last name wins. We
320 could do this by switching our sort algorithm to one that will
321 guarantee that the names won't be reordered. Alternately, we could
322 assign an ever-increasing number to each item as we insert it into
323 the list and then make sure that we leave the largest number when
324 cleaning the file list (see clean_flist()). Another solution would
325 be to add a hash table, and thus never put any duplicate names into
326 the file list (and bump the protocol to handle this).
327
328 -- --
329
330
331 Use generic zlib 2002/02/25
332
333 Perhaps don't use our own zlib.
334
335 Advantages:
336
337 - will automatically be up to date with bugfixes in zlib
338
339 - can leave it out for small rsync on e.g. recovery disks
340
341 - can use a shared library
342
343 - avoids people breaking rsync by trying to do this themselves and
344 messing up
345
346 Should we ship zlib for systems that don't have it, or require
347 people to install it separately?
348
349 Apparently this will make us incompatible with versions of rsync
350 that use the patched version of rsync. Probably the simplest way to
351 do this is to just disable gzip (with a warning) when talking to old
352 versions.
353
354 -- --
355
356
357 Splint 2002/03/12
358
359 Build rsync with SPLINT to try to find security holes. Add
360 annotations as necessary. Keep track of the number of warnings
361 found initially, and see how many of them are real bugs, or real
362 security bugs. Knowing the percentage of likely hits would be
363 really interesting for other projects.
364
365 -- --
366
367 PERFORMANCE ----------------------------------------------------------
368
369 Allow skipping MD4 file_sum 2002/04/08
370
371 If we're doing a local transfer, or using -W, then perhaps don't
372 send the file checksum. If we're doing a local transfer, then
373 calculating MD4 checksums uses 90% of CPU and is unlikely to be
374 useful.
375
376 We should not allow it to be disabled separately from -W, though
377 as it is the only thing that lets us know when the rsync algorithm
378 got out of sync and messed the file up (i.e. if the basis file
379 changed between checksum generation and reception).
380
381 -- --
382
383
384 Accelerate MD4
385
386 Perhaps borrow an assembler MD4 from someone?
387
388 Make sure we call MD4 with properly-sized blocks whenever possible
389 to avoid copying into the residue region?
390
391 -- --
392
393 TESTING --------------------------------------------------------------
394
395 Torture test
396
397 Something that just keeps running rsync continuously over a data set
398 likely to generate problems.
399
400 -- --
401
402
403 Cross-test versions 2001/08/22
404
405 Part of the regression suite should be making sure that we
406 don't break backwards compatibility: old clients vs new
407 servers and so on. Ideally we would test both up and down
408 from the current release to all old versions.
409
410 Run current rsync versions against significant past releases.
411
412 We might need to omit broken old versions, or versions in which
413 particular functionality is broken
414
415 It might be sufficient to test downloads from well-known public
416 rsync servers running different versions of rsync. This will give
417 some testing and also be the most common case for having different
418 versions and not being able to upgrade.
419
420 The new --protocol option may help in this.
421
422 -- --
423
424
425 Test on kernel source
426
427 Download all versions of kernel; unpack, sync between them. Also
428 sync between uncompressed tarballs. Compare directories after
429 transfer.
430
431 Use local mode; ssh; daemon; --whole-file and --no-whole-file.
432
433 Use awk to pull out the 'speedup' number for each transfer. Make
434 sure it is >= x.
435
436 -- --
437
438
439 Test large files
440
441 Sparse and non-sparse
442
443 -- --
444
445
446 Create mutator program for testing
447
448 Insert bytes, delete bytes, swap blocks, ...
449
450 -- --
451
452
453 Create configure option to enable dangerous tests
454
455 -- --
456
457
458 Create pipe program for testing
459
460 Create pipe program that makes slow/jerky connections for
461 testing Versions of read() and write() that corrupt the
462 stream, or abruptly fail
463
464 -- --
465
466
467 Create test makefile target for some tests
468
469 Separate makefile target to run rough tests -- or perhaps
470 just run them every time?
471
472 -- --
473
474 RELATED PROJECTS -----------------------------------------------------
475
476 rsyncsh
477
478 Write a small emulation of interactive ftp as a Pythonn program
479 that calls rsync. Commands such as "cd", "ls", "ls *.c" etc map
480 fairly directly into rsync commands: it just needs to remember the
481 current host, directory and so on. We can probably even do
482 completion of remote filenames.
483
484 -- --
485
486
487 https://rsync.samba.org/rsync-and-debian/
488
489
490 -- --
491
492
493 rsyncable gzip patch
494
495 Exhaustive, tortuous testing
496
497 Cleanups?
498
499 -- --
500
501
502 rsyncsplit as alternative to real integration with gzip?
503
504 -- --
505
506
507 reverse rsync over HTTP Range
508
509 Goswin Brederlow suggested this on Debian; I think tridge and I
510 talked about it previous in relation to rproxy.
511
512 Addendum: It looks like someone is working on a version of this:
513
514 http://zsync.moria.org.uk/
515
516 -- --
517