3 BUGS ---------------------------------------------------------------
4 Fix progress indicator to not corrupt log
6 Do not rely on having a group called "nobody"
7 Incorrect timestamps (Debian #100295)
10 FEATURES ------------------------------------------------------------
11 server-imposed bandwidth limits
13 Use chroot only if supported
14 Allow supplementary groups in rsyncd.conf 2002/04/09
15 Handling IPv6 on old machines
17 Add ACL support 2001/12/02
18 Lazy directory creation
19 proxy authentication 2002/01/23
22 Allow forcing arbitrary permissions 2002/03/12
23 --diff david.e.sewell 2002/03/15
24 Add daemon --no-detach and --no-fork options
25 Create more granular verbosity jw 2003/05/15
27 DOCUMENTATION --------------------------------------------------------
29 Keep list of open issues and todos on the web site
30 Update web site from CVS
31 Perhaps redo manual as SGML
33 LOGGING --------------------------------------------------------------
34 Make dry run list all updates 2002/04/03
36 Improve error messages
37 Better statistics: Rasmus 2002/03/08
38 Perhaps flush stdout like syslog
39 Log deamon sessions that just list modules
40 Log child death on signal
41 Keep stderr and stdout properly separated (Debian #23626)
42 Log errors with function that reports process of origin
43 verbose output David Stein 2001/12/20
44 Add reason for transfer to file logging
45 debugging of daemon 2002/04/08
48 DEVELOPMENT --------------------------------------------------------
49 Handling duplicate names
50 Use generic zlib 2002/02/25
55 Add machines to build farm
57 PERFORMANCE ----------------------------------------------------------
58 File list structure in memory
59 Traverse just one directory at a time
60 Allow skipping MD4 file_sum 2002/04/08
63 TESTING --------------------------------------------------------------
65 Cross-test versions 2001/08/22
68 Create mutator program for testing
69 Create configure option to enable dangerous tests
70 If tests are skipped, say why.
71 Test daemon feature to disallow particular options.
72 Create pipe program for testing
73 Create test makefile target for some tests
75 RELATED PROJECTS -----------------------------------------------------
77 http://rsync.samba.org/rsync-and-debian/
79 rsyncsplit as alternative to real integration with gzip?
80 reverse rsync over HTTP Range
84 BUGS ---------------------------------------------------------------
86 Fix progress indicator to not corrupt log
88 Progress indicator can produce corrupt output when transferring directories:
91 main/binary-arm/admin/
93 main/binary-arm/comm/8.56kB/s 0:00:52
94 main/binary-arm/devel/
96 main/binary-arm/editors/
97 main/binary-arm/electronics/s 0:00:53
98 main/binary-arm/games/
99 main/binary-arm/graphics/
100 main/binary-arm/hamradio/
101 main/binary-arm/interpreters/
102 main/binary-arm/libs/6.61kB/s 0:00:54
103 main/binary-arm/mail/
104 main/binary-arm/math/
105 main/binary-arm/misc/
112 I don't think we handle this properly on systems that don't have the
113 call. Are there any such?
118 Do not rely on having a group called "nobody"
120 http://www.linuxbase.org/spec/refspecs/LSB_1.1.0/gLSB/usernames.html
122 On Debian it's "nogroup"
127 Incorrect timestamps (Debian #100295)
129 A bit hard to believe, but apparently it happens.
136 Don't detach, because this messes up --srvany.
138 http://sources.redhat.com/ml/cygwin/2001-08/msg00234.html
144 FEATURES ------------------------------------------------------------
146 server-imposed bandwidth limits
153 There are already some patches to do this.
155 BitKeeper uses a server whose login shell is set to bkd. That's
156 probably a reasonable approach.
161 Use chroot only if supported
163 If the platform doesn't support it, then don't even try.
165 If running as non-root, then don't fail, just give a warning.
166 (There was a thread about this a while ago?)
168 http://lists.samba.org/pipermail/rsync/2001-August/thread.html
169 http://lists.samba.org/pipermail/rsync/2001-September/thread.html
174 Allow supplementary groups in rsyncd.conf 2002/04/09
176 Perhaps allow supplementary groups to be specified in rsyncd.conf;
177 then make the first one the primary gid and all the rest be
183 Handling IPv6 on old machines
185 The KAME IPv6 patch is nice in theory but has proved a bit of a
186 nightmare in practice. The basic idea of their patch is that rsync
187 is rewritten to use the new getaddrinfo()/getnameinfo() interface,
188 rather than gethostbyname()/gethostbyaddr() as in rsync 2.4.6.
189 Systems that don't have the new interface are handled by providing
190 our own implementation in lib/, which is selectively linked in.
192 The problem with this is that it is really hard to get right on
193 platforms that have a half-working implementation, so redefining
194 these functions clashes with system headers, and leaving them out
195 breaks. This affects at least OSF/1, RedHat 5, and Cobalt, which
196 are moderately improtant.
198 Perhaps the simplest solution would be to have two different files
199 implementing the same interface, and choose either the new or the
200 old API. This is probably necessary for systems that e.g. have
201 IPv6, but gethostbyaddr() can't handle it. The Linux manpage claims
202 this is currently the case.
204 In fact, our internal sockets interface (things like
205 open_socket_out(), etc) is much narrower than the getaddrinfo()
206 interface, and so probably simpler to get right. In addition, the
207 old code is known to work well on old machines.
209 We could drop the rather large lib/getaddrinfo files.
216 Implement suggestions from http://www.kame.net/newsletter/19980604/
217 and ftp://ftp.iij.ad.jp/pub/RFC/rfc2553.txt
219 If a host has multiple addresses, then listen try to connect to all
220 in order until we get through. (getaddrinfo may return multiple
221 addresses.) This is kind of implemented already.
223 Possibly also when starting as a server we may need to listen on
224 multiple passive addresses. This might be a bit harder, because we
225 may need to select on all of them. Hm.
227 Define a syntax for IPv6 literal addresses. Since they include
228 colons, they tend to break most naming systems, including ours.
229 Based on the HTTP IPv6 syntax, I think we should use
231 rsync://[::1]/foo/bar [::1]::bar
233 which should just take a small change to the parser code.
238 Add ACL support 2001/12/02
240 Transfer ACLs. Need to think of a standard representation.
241 Probably better not to even try to convert between NT and POSIX.
242 Possibly can share some code with Samba.
247 Lazy directory creation
249 With the current common --include '*/' --exclude '*' pattern, people
250 can end up with many empty directories. We might avoid this by
251 lazily creating such directories.
256 proxy authentication 2002/01/23
258 Allow RSYNC_PROXY to be http://user:pass@proxy.foo:3128/, and do
259 HTTP Basic Proxy-Authentication.
261 Multiple schemes are possible, up to and including the insanity that
262 is NTLM, but Basic probably covers most cases.
269 Add --with-socks, and then perhaps a command-line option to put them
270 on or off. This might be more reliable than LD_PRELOAD hacks.
277 rsync to a FAT partition on a Unix machine doesn't work very well at
278 the moment. I think we get errors about invalid filenames and
279 perhaps also trying to do atomic renames.
281 I guess the code to do this is currently #ifdef'd on Windows;
282 perhaps we ought to intelligently fall back to it on Unix too.
287 Allow forcing arbitrary permissions 2002/03/12
289 On 12 Mar 2002, Dave Dykstra <dwd@bell-labs.com> wrote:
290 > If we would add an option to do that functionality, I
291 > would vote for one that was more general which could mask
292 > off any set of permission bits and possibly add any set of
293 > bits. Perhaps a chmod-like syntax if it could be
294 > implemented simply.
296 I think that would be good too. For example, people uploading files
297 to a web server might like to say
299 rsync -avzP --chmod a+rX ./ sourcefrog.net:/home/www/sourcefrog/
301 Ideally the patch would implement as many of the gnu chmod semantics
302 as possible. I think the mode parser should be a separate function
303 that passes back something like (mask,set) description to the rest
304 of the program. For bonus points there would be a test case for the
307 Possibly also --chown
314 --diff david.e.sewell 2002/03/15
316 Allow people to specify the diff command. (Might want to use wdiff,
319 Just diff the temporary file with the destination file, and delete
320 the tmp file rather than moving it into place.
322 Interaction with --partial.
324 Security interactions with daemon mode?
329 Add daemon --no-detach and --no-fork options
331 Very useful for debugging. Also good when running under a
332 daemon-monitoring process that tries to restart the service when the
338 Create more granular verbosity jw 2003/05/15
340 Control output with the --report option.
342 The option takes as a single argument (no whitespace) a
343 comma delimited lists of keywords.
345 This would separate debugging from "logging" as well as
346 fine grained selection of statistical reporting and what
349 http://lists.samba.org/archive/rsync/2003-May/006059.html
353 DOCUMENTATION --------------------------------------------------------
360 Keep list of open issues and todos on the web site
365 Update web site from CVS
370 Perhaps redo manual as SGML
372 The man page is getting rather large, and there is more information
373 that ought to be added.
375 TexInfo source is probably a dying format.
377 Linuxdoc looks like the most likely contender. I know DocBook is
378 favoured by some people, but it's so bloody verbose, even with emacs
383 LOGGING --------------------------------------------------------------
385 Make dry run list all updates 2002/04/03
389 Mark Santcroos points out that -n fails to list files which have
390 only metadata changes, though it probably should.
392 There may be a Debian bug about this as well.
399 At exit, show how much memory was used for the file list, etc.
401 Also we do a wierd exponential-growth allocation in flist.c. I'm
402 not sure this makes sense with modern mallocs. At any rate it will
403 make us allocate a huge amount of memory for large file lists.
408 Improve error messages
410 If we hang or get SIGINT, then explain where we were up to. Perhaps
411 have a static buffer that contains the current function name, or
412 some kind of description of what we were trying to do. This is a
413 little easier on people than needing to run strace/truss.
415 "The dungeon collapses! You are killed." Rather than "unexpected
416 eof" give a message that is more detailed if possible and also more
419 If we get an error writing to a socket, then we should perhaps
420 continue trying to read to see if an error message comes across
421 explaining why the socket is closed. I'm not sure if this would
422 work, but it would certainly make our messages more helpful.
424 What happens if a directory is missing -x attributes. Do we lose
425 our load? (Debian #28416) Probably fixed now, but a test case would
433 Better statistics: Rasmus 2002/03/08
436 hey, how about an rsync option that just gives you the
437 summary without the list of files? And perhaps gives
438 more information like the number of new files, number
439 of changed, deleted, etc. ?
442 nice idea there is --stats but at the moment it's very
443 tridge-oriented rather than user-friendly it would be
444 nice to improve it that would also work well with
450 Perhaps flush stdout like syslog
452 Perhaps flush stdout after each filename, so that people trying to
453 monitor progress in a log file can do so more easily. See
454 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48108
459 Log deamon sessions that just list modules
461 At the connections that just get a list of modules are not logged,
467 Log child death on signal
469 If a child of the rsync daemon dies with a signal, we should notice
470 that when we reap it and log a message.
475 Keep stderr and stdout properly separated (Debian #23626)
480 Log errors with function that reports process of origin
482 Use a separate function for reporting errors; prefix it with
483 "rsync:" or "rsync(remote)", or perhaps even "rsync(local
489 verbose output David Stein 2001/12/20
491 Indicate whether files are new, updated, or deleted
493 At end of transfer, show how many files were or were not transferred
499 Add reason for transfer to file logging
501 Explain *why* every file is transferred or not (e.g. "local mtime
502 123123 newer than 1283198")
507 debugging of daemon 2002/04/08
509 Add an rsyncd.conf parameter to turn on debugging on the server.
516 Change to using gettext(). Probably need to ship this for platforms
519 Solicit translations.
521 Does anyone care? Before we bother modifying the code, we ought to
522 get the manual translated first, because that's possibly more useful
523 and at any rate demonstrates desire.
527 DEVELOPMENT --------------------------------------------------------
529 Handling duplicate names
531 We need to be careful of duplicate names getting into the file list.
532 See clean_flist(). This could happen if multiple arguments include
535 I think duplicates are only a problem if they're both flowing
536 through the pipeline at the same time. For example we might have
537 updated the first occurrence after reading the checksums for the
538 second. So possibly we just need to make sure that we don't have
539 both in the pipeline at the same time.
541 Possibly if we did one directory at a time that would be sufficient.
543 Alternatively we could pre-process the arguments to make sure no
544 duplicates will ever be inserted. There could be some bad cases
545 when we're collapsing symlinks.
547 We could have a hash table.
549 The root of the problem is that we do not want more than one file
550 list entry referring to the same file. At first glance there are
551 several ways this could happen: symlinks, hardlinks, and repeated
552 names on the command line.
554 If names are repeated on the command line, they may be present in
555 different forms, perhaps by traversing directory paths in different
556 ways, traversing paths including symlinks. Also we need to allow
557 for expansion of globs by rsync.
559 At the moment, clean_flist() requires having the entire file list in
560 memory. Duplicate names are detected just by a string comparison.
562 We don't need to worry about hard links causing duplicates because
563 files are never updated in place. Similarly for symlinks.
565 I think even if we're using a different symlink mode we don't need
568 Unless we're really clever this will introduce a protocol
569 incompatibility, so we need to be able to accept the old format as
575 Use generic zlib 2002/02/25
577 Perhaps don't use our own zlib.
581 - will automatically be up to date with bugfixes in zlib
583 - can leave it out for small rsync on e.g. recovery disks
585 - can use a shared library
587 - avoids people breaking rsync by trying to do this themselves and
590 Should we ship zlib for systems that don't have it, or require
591 people to install it separately?
593 Apparently this will make us incompatible with versions of rsync
594 that use the patched version of rsync. Probably the simplest way to
595 do this is to just disable gzip (with a warning) when talking to old
603 Rather than storing the file list in memory, store it in a TDB.
605 This *might* make memory usage lower while building the file list.
607 Hashtable lookup will mean files are not transmitted in order,
610 This would neatly eliminate one of the major post-fork shared data
618 Build rsync with SPLINT to try to find security holes. Add
619 annotations as necessary. Keep track of the number of warnings
620 found initially, and see how many of them are real bugs, or real
621 security bugs. Knowing the percentage of likely hits would be
622 really interesting for other projects.
629 jra recommends Valgrind:
631 http://devel-home.kde.org/~sewardj/
636 Create release script
642 Build tar file; upload
644 Send announcement to mailing list and c.o.l.a.
646 Make freshmeat announcement
653 Add machines to build farm
655 Cygwin (on different versions of Win32?)
657 HP-UX variants (via HP?)
665 PERFORMANCE ----------------------------------------------------------
667 File list structure in memory
669 Rather than one big array, perhaps have a tree in memory mirroring
672 This might make sorting much faster! (I'm not sure it's a big CPU
675 It might also reduce memory use in storing repeated directory names
676 -- again I'm not sure this is a problem.
681 Traverse just one directory at a time
683 Traverse just one directory at a time. Tridge says it's possible.
685 At the moment rsync reads the whole file list into memory at the
686 start, which makes us use a lot of memory and also not pipeline
687 network access as much as we could.
692 Allow skipping MD4 file_sum 2002/04/08
694 If we're doing a local transfer, or using -W, then perhaps don't
695 send the file checksum. If we're doing a local transfer, then
696 calculating MD4 checksums uses 90% of CPU and is unlikely to be
699 Indeed for transfers over zlib or ssh we can also rely on the
700 transport to have quite strong protection against corruption.
702 Perhaps we should have an option to disable this,
703 analogous to --whole-file, although it would default to
704 disabled. The file checksum takes up a definite space in
705 the protocol -- we can either set it to 0, or perhaps just
713 Perhaps borrow an assembler MD4 from someone?
715 Make sure we call MD4 with properly-sized blocks whenever possible
716 to avoid copying into the residue region?
720 TESTING --------------------------------------------------------------
724 Something that just keeps running rsync continuously over a data set
725 likely to generate problems.
730 Cross-test versions 2001/08/22
732 Part of the regression suite should be making sure that we
733 don't break backwards compatibility: old clients vs new
734 servers and so on. Ideally we would test both up and down
735 from the current release to all old versions.
737 Run current rsync versions against significant past releases.
739 We might need to omit broken old versions, or versions in which
740 particular functionality is broken
742 It might be sufficient to test downloads from well-known public
743 rsync servers running different versions of rsync. This will give
744 some testing and also be the most common case for having different
745 versions and not being able to upgrade.
747 The new --protocol option may help in this.
752 Test on kernel source
754 Download all versions of kernel; unpack, sync between them. Also
755 sync between uncompressed tarballs. Compare directories after
758 Use local mode; ssh; daemon; --whole-file and --no-whole-file.
760 Use awk to pull out the 'speedup' number for each transfer. Make
768 Sparse and non-sparse
773 Create mutator program for testing
775 Insert bytes, delete bytes, swap blocks, ...
780 Create configure option to enable dangerous tests
785 If tests are skipped, say why.
790 Test daemon feature to disallow particular options.
795 Create pipe program for testing
797 Create pipe program that makes slow/jerky connections for
798 testing Versions of read() and write() that corrupt the
799 stream, or abruptly fail
804 Create test makefile target for some tests
806 Separate makefile target to run rough tests -- or perhaps
807 just run them every time?
811 RELATED PROJECTS -----------------------------------------------------
815 Write a small emulation of interactive ftp as a Pythonn program
816 that calls rsync. Commands such as "cd", "ls", "ls *.c" etc map
817 fairly directly into rsync commands: it just needs to remember the
818 current host, directory and so on. We can probably even do
819 completion of remote filenames.
824 http://rsync.samba.org/rsync-and-debian/
832 Exhaustive, tortuous testing
839 rsyncsplit as alternative to real integration with gzip?
844 reverse rsync over HTTP Range
846 Goswin Brederlow suggested this on Debian; I think tridge and I
847 talked about it previous in relation to rproxy.