Got rid of kluged value for am_sender, and instead added a new
[rsync/rsync.git] / TODO
CommitLineData
46ef7d1d 1-*- indented-text -*-
a0365806 2
259c3e72 3BUGS ---------------------------------------------------------------
abb0b532 4Do not rely on having a group called "nobody"
abb0b532
S
5
6FEATURES ------------------------------------------------------------
abb0b532
S
7Use chroot only if supported
8Allow supplementary groups in rsyncd.conf 2002/04/09
9Handling IPv6 on old machines
10Other IPv6 stuff:
11Add ACL support 2001/12/02
12Lazy directory creation
abb0b532
S
13proxy authentication 2002/01/23
14SOCKS 2002/01/23
15FAT support
16Allow forcing arbitrary permissions 2002/03/12
17--diff david.e.sewell 2002/03/15
22832c30 18Add daemon --no-fork option
16a3fec0 19Create more granular verbosity jw 2003/05/15
abb0b532
S
20
21DOCUMENTATION --------------------------------------------------------
abb0b532 22Keep list of open issues and todos on the web site
abb0b532
S
23Perhaps redo manual as SGML
24
25LOGGING --------------------------------------------------------------
abb0b532
S
26Memory accounting
27Improve error messages
28Better statistics: Rasmus 2002/03/08
29Perhaps flush stdout like syslog
30Log deamon sessions that just list modules
31Log child death on signal
abb0b532
S
32Log errors with function that reports process of origin
33verbose output David Stein 2001/12/20
abb0b532
S
34internationalization
35
36DEVELOPMENT --------------------------------------------------------
37Handling duplicate names
38Use generic zlib 2002/02/25
39TDB: 2002/03/12
40Splint 2002/03/12
abb0b532
S
41
42PERFORMANCE ----------------------------------------------------------
43File list structure in memory
44Traverse just one directory at a time
abb0b532
S
45Allow skipping MD4 file_sum 2002/04/08
46Accelerate MD4
abb0b532
S
47
48TESTING --------------------------------------------------------------
49Torture test
50Cross-test versions 2001/08/22
51Test on kernel source
52Test large files
53Create mutator program for testing
54Create configure option to enable dangerous tests
55If tests are skipped, say why.
56Test daemon feature to disallow particular options.
57Create pipe program for testing
58Create test makefile target for some tests
abb0b532
S
59
60RELATED PROJECTS -----------------------------------------------------
61rsyncsh
62http://rsync.samba.org/rsync-and-debian/
63rsyncable gzip patch
64rsyncsplit as alternative to real integration with gzip?
65reverse rsync over HTTP Range
66
259c3e72 67
abb0b532
S
68
69BUGS ---------------------------------------------------------------
70
5ba268ef 71
8bd1a73e
MP
72Do not rely on having a group called "nobody"
73
74 http://www.linuxbase.org/spec/refspecs/LSB_1.1.0/gLSB/usernames.html
75
76 On Debian it's "nogroup"
e4724e5c 77
abb0b532 78 -- --
b3e6c815 79
abb0b532 80FEATURES ------------------------------------------------------------
a6a3c3df 81
a6a3c3df 82
abb0b532 83Use chroot only if supported
a6a3c3df 84
abb0b532 85 If the platform doesn't support it, then don't even try.
a6a3c3df 86
abb0b532
S
87 If running as non-root, then don't fail, just give a warning.
88 (There was a thread about this a while ago?)
a6a3c3df 89
abb0b532
S
90 http://lists.samba.org/pipermail/rsync/2001-August/thread.html
91 http://lists.samba.org/pipermail/rsync/2001-September/thread.html
a6a3c3df 92
abb0b532 93 -- --
a6a3c3df 94
a6a3c3df 95
abb0b532 96Allow supplementary groups in rsyncd.conf 2002/04/09
a6a3c3df 97
abb0b532
S
98 Perhaps allow supplementary groups to be specified in rsyncd.conf;
99 then make the first one the primary gid and all the rest be
100 supplementary gids.
a2d2e5c0 101
abb0b532 102 -- --
a2d2e5c0 103
bde47ca7 104
411acbbc 105Handling IPv6 on old machines
bde47ca7 106
411acbbc
MP
107 The KAME IPv6 patch is nice in theory but has proved a bit of a
108 nightmare in practice. The basic idea of their patch is that rsync
109 is rewritten to use the new getaddrinfo()/getnameinfo() interface,
110 rather than gethostbyname()/gethostbyaddr() as in rsync 2.4.6.
111 Systems that don't have the new interface are handled by providing
112 our own implementation in lib/, which is selectively linked in.
c7d692c3 113
411acbbc
MP
114 The problem with this is that it is really hard to get right on
115 platforms that have a half-working implementation, so redefining
116 these functions clashes with system headers, and leaving them out
117 breaks. This affects at least OSF/1, RedHat 5, and Cobalt, which
118 are moderately improtant.
119
120 Perhaps the simplest solution would be to have two different files
121 implementing the same interface, and choose either the new or the
122 old API. This is probably necessary for systems that e.g. have
123 IPv6, but gethostbyaddr() can't handle it. The Linux manpage claims
124 this is currently the case.
125
126 In fact, our internal sockets interface (things like
127 open_socket_out(), etc) is much narrower than the getaddrinfo()
128 interface, and so probably simpler to get right. In addition, the
129 old code is known to work well on old machines.
130
131 We could drop the rather large lib/getaddrinfo files.
132
abb0b532
S
133 -- --
134
411acbbc
MP
135
136Other IPv6 stuff:
137
c33e3e39
MP
138 Implement suggestions from http://www.kame.net/newsletter/19980604/
139 and ftp://ftp.iij.ad.jp/pub/RFC/rfc2553.txt
140
141 If a host has multiple addresses, then listen try to connect to all
142 in order until we get through. (getaddrinfo may return multiple
c10b0bdd 143 addresses.) This is kind of implemented already.
c33e3e39
MP
144
145 Possibly also when starting as a server we may need to listen on
146 multiple passive addresses. This might be a bit harder, because we
147 may need to select on all of them. Hm.
148
a2d2e5c0
MP
149 Define a syntax for IPv6 literal addresses. Since they include
150 colons, they tend to break most naming systems, including ours.
151 Based on the HTTP IPv6 syntax, I think we should use
152
a577af90 153 rsync://[::1]/foo/bar [::1]::bar
a2d2e5c0
MP
154
155 which should just take a small change to the parser code.
156
abb0b532 157 -- --
b17dd0c4
MP
158
159
abb0b532 160Add ACL support 2001/12/02
5575de14 161
5575de14
MP
162 Transfer ACLs. Need to think of a standard representation.
163 Probably better not to even try to convert between NT and POSIX.
164 Possibly can share some code with Samba.
80ffc3de 165 NOTE: there is a patch that implements this in the "patches" subdir.
5aafd07b 166
abb0b532
S
167 -- --
168
169
170Lazy directory creation
28a69e25
MP
171
172 With the current common --include '*/' --exclude '*' pattern, people
173 can end up with many empty directories. We might avoid this by
174 lazily creating such directories.
175
abb0b532 176 -- --
c6e27b60 177
28a69e25 178
abb0b532 179proxy authentication 2002/01/23
92325ada
MP
180
181 Allow RSYNC_PROXY to be http://user:pass@proxy.foo:3128/, and do
a577af90 182 HTTP Basic Proxy-Authentication.
92325ada
MP
183
184 Multiple schemes are possible, up to and including the insanity that
185 is NTLM, but Basic probably covers most cases.
186
abb0b532
S
187 -- --
188
189
190SOCKS 2002/01/23
92325ada
MP
191
192 Add --with-socks, and then perhaps a command-line option to put them
193 on or off. This might be more reliable than LD_PRELOAD hacks.
194
abb0b532
S
195 -- --
196
197
5ba268ef
MP
198FAT support
199
a577af90
PG
200 rsync to a FAT partition on a Unix machine doesn't work very well at
201 the moment. I think we get errors about invalid filenames and
5ba268ef
MP
202 perhaps also trying to do atomic renames.
203
a577af90
PG
204 I guess the code to do this is currently #ifdef'd on Windows;
205 perhaps we ought to intelligently fall back to it on Unix too.
5ba268ef 206
abb0b532 207 -- --
5ba268ef 208
27741d9f 209
abb0b532 210Allow forcing arbitrary permissions 2002/03/12
e53fe9a2 211
abb0b532
S
212 On 12 Mar 2002, Dave Dykstra <dwd@bell-labs.com> wrote:
213 > If we would add an option to do that functionality, I
214 > would vote for one that was more general which could mask
215 > off any set of permission bits and possibly add any set of
216 > bits. Perhaps a chmod-like syntax if it could be
217 > implemented simply.
97e1254a 218
a577af90 219 I think that would be good too. For example, people uploading files
97e1254a
MP
220 to a web server might like to say
221
222 rsync -avzP --chmod a+rX ./ sourcefrog.net:/home/www/sourcefrog/
223
224 Ideally the patch would implement as many of the gnu chmod semantics
225 as possible. I think the mode parser should be a separate function
a577af90
PG
226 that passes back something like (mask,set) description to the rest
227 of the program. For bonus points there would be a test case for the
97e1254a
MP
228 parser.
229
8bd1a73e
MP
230 Possibly also --chown
231
36692011
MP
232 (Debian #23628)
233
80ffc3de
WD
234 NOTE: there is a patch that implements this in the "patches" subdir.
235
abb0b532 236 -- --
97e1254a 237
abb0b532
S
238
239--diff david.e.sewell 2002/03/15
3c1edccb
MP
240
241 Allow people to specify the diff command. (Might want to use wdiff,
242 gnudiff, etc.)
243
244 Just diff the temporary file with the destination file, and delete
245 the tmp file rather than moving it into place.
246
247 Interaction with --partial.
248
249 Security interactions with daemon mode?
250
abb0b532 251 -- --
3c1edccb
MP
252
253
22832c30 254Add daemon --no-fork option
a628b069 255
abb0b532
S
256 Very useful for debugging. Also good when running under a
257 daemon-monitoring process that tries to restart the service when the
258 parent exits.
6d19c674 259
abb0b532 260 -- --
6d19c674 261
16a3fec0
S
262
263Create more granular verbosity jw 2003/05/15
264
265 Control output with the --report option.
266
267 The option takes as a single argument (no whitespace) a
268 comma delimited lists of keywords.
269
270 This would separate debugging from "logging" as well as
271 fine grained selection of statistical reporting and what
272 actions are logged.
273
274 http://lists.samba.org/archive/rsync/2003-May/006059.html
275
276 -- --
277
abb0b532 278DOCUMENTATION --------------------------------------------------------
6d19c674 279
6479c2ed 280
abb0b532 281Keep list of open issues and todos on the web site
bd0ad74f 282
abb0b532 283 -- --
bd0ad74f 284
bd0ad74f 285
abb0b532 286Perhaps redo manual as SGML
bd0ad74f 287
abb0b532
S
288 The man page is getting rather large, and there is more information
289 that ought to be added.
bd0ad74f 290
abb0b532 291 TexInfo source is probably a dying format.
6479c2ed 292
abb0b532
S
293 Linuxdoc looks like the most likely contender. I know DocBook is
294 favoured by some people, but it's so bloody verbose, even with emacs
295 support.
a628b069 296
abb0b532 297 -- --
a2d2e5c0 298
abb0b532 299LOGGING --------------------------------------------------------------
a2d2e5c0 300
abb0b532
S
301
302Memory accounting
303
304 At exit, show how much memory was used for the file list, etc.
305
306 Also we do a wierd exponential-growth allocation in flist.c. I'm
307 not sure this makes sense with modern mallocs. At any rate it will
308 make us allocate a huge amount of memory for large file lists.
309
310 -- --
311
312
313Improve error messages
314
315 If we hang or get SIGINT, then explain where we were up to. Perhaps
316 have a static buffer that contains the current function name, or
317 some kind of description of what we were trying to do. This is a
318 little easier on people than needing to run strace/truss.
319
320 "The dungeon collapses! You are killed." Rather than "unexpected
321 eof" give a message that is more detailed if possible and also more
322 helpful.
323
324 If we get an error writing to a socket, then we should perhaps
325 continue trying to read to see if an error message comes across
326 explaining why the socket is closed. I'm not sure if this would
327 work, but it would certainly make our messages more helpful.
328
329 What happens if a directory is missing -x attributes. Do we lose
330 our load? (Debian #28416) Probably fixed now, but a test case would
331 be good.
a2d2e5c0 332
96fb478e
WD
333 When running as a daemon, some errors should both be returned to the
334 user and logged. This will make interacting with a daemon less
335 cryptic.
5ba268ef 336
abb0b532 337 -- --
0e23e41d 338
abb0b532
S
339
340Better statistics: Rasmus 2002/03/08
341
342 <Rasmus>
343 hey, how about an rsync option that just gives you the
344 summary without the list of files? And perhaps gives
345 more information like the number of new files, number
346 of changed, deleted, etc. ?
347
348 <mbp>
349 nice idea there is --stats but at the moment it's very
350 tridge-oriented rather than user-friendly it would be
351 nice to improve it that would also work well with
352 --dryrun
353
354 -- --
355
356
357Perhaps flush stdout like syslog
358
359 Perhaps flush stdout after each filename, so that people trying to
360 monitor progress in a log file can do so more easily. See
361 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=48108
362
363 -- --
364
365
366Log deamon sessions that just list modules
367
368 At the connections that just get a list of modules are not logged,
369 but they should be.
370
371 -- --
372
373
374Log child death on signal
375
376 If a child of the rsync daemon dies with a signal, we should notice
377 that when we reap it and log a message.
378
379 -- --
380
381
abb0b532
S
382Log errors with function that reports process of origin
383
384 Use a separate function for reporting errors; prefix it with
385 "rsync:" or "rsync(remote)", or perhaps even "rsync(local
386 generator): ".
387
388 -- --
389
390
391verbose output David Stein 2001/12/20
392
abb0b532
S
393 At end of transfer, show how many files were or were not transferred
394 correctly.
395
396 -- --
397
398
abb0b532
S
399internationalization
400
401 Change to using gettext(). Probably need to ship this for platforms
402 that don't have it.
403
404 Solicit translations.
405
406 Does anyone care? Before we bother modifying the code, we ought to
407 get the manual translated first, because that's possibly more useful
408 and at any rate demonstrates desire.
409
410 -- --
411
412DEVELOPMENT --------------------------------------------------------
413
414Handling duplicate names
415
80ffc3de
WD
416 Some folks would like rsync to be deterministic in how it handles
417 duplicate names that come from mering multiple source directories
418 into a single destination directory; e.g. the last name wins. We
419 could do this by switching our sort algorithm to one that will
420 guarantee that the names won't be reordered. Alternately, we could
421 assign an ever-increasing number to each item as we insert it into
422 the list and then make sure that we leave the largest number when
423 cleaning the file list (see clean_flist()). Another solution would
424 be to add a hash table, and thus never put any duplicate names into
425 the file list (and bump the protocol to handle this).
abb0b532
S
426
427 -- --
428
429
430Use generic zlib 2002/02/25
431
432 Perhaps don't use our own zlib.
433
434 Advantages:
435
436 - will automatically be up to date with bugfixes in zlib
437
438 - can leave it out for small rsync on e.g. recovery disks
439
440 - can use a shared library
441
442 - avoids people breaking rsync by trying to do this themselves and
443 messing up
444
445 Should we ship zlib for systems that don't have it, or require
446 people to install it separately?
447
448 Apparently this will make us incompatible with versions of rsync
449 that use the patched version of rsync. Probably the simplest way to
450 do this is to just disable gzip (with a warning) when talking to old
451 versions.
452
453 -- --
454
455
456TDB: 2002/03/12
457
458 Rather than storing the file list in memory, store it in a TDB.
459
460 This *might* make memory usage lower while building the file list.
461
462 Hashtable lookup will mean files are not transmitted in order,
463 though... hm.
464
465 This would neatly eliminate one of the major post-fork shared data
466 structures.
467
468 -- --
469
470
471Splint 2002/03/12
0e23e41d
MP
472
473 Build rsync with SPLINT to try to find security holes. Add
474 annotations as necessary. Keep track of the number of warnings
475 found initially, and see how many of them are real bugs, or real
476 security bugs. Knowing the percentage of likely hits would be
477 really interesting for other projects.
478
abb0b532 479 -- --
f5a95bb5 480
abb0b532 481PERFORMANCE ----------------------------------------------------------
25ff30e8 482
abb0b532 483File list structure in memory
25ff30e8 484
abb0b532
S
485 Rather than one big array, perhaps have a tree in memory mirroring
486 the directory tree.
25ff30e8 487
abb0b532
S
488 This might make sorting much faster! (I'm not sure it's a big CPU
489 problem, mind you.)
25ff30e8 490
abb0b532
S
491 It might also reduce memory use in storing repeated directory names
492 -- again I'm not sure this is a problem.
e9c4c301 493
abb0b532 494 -- --
e9c4c301 495
e9c4c301 496
abb0b532 497Traverse just one directory at a time
e9c4c301 498
abb0b532 499 Traverse just one directory at a time. Tridge says it's possible.
e9c4c301 500
abb0b532
S
501 At the moment rsync reads the whole file list into memory at the
502 start, which makes us use a lot of memory and also not pipeline
503 network access as much as we could.
e9c4c301 504
abb0b532 505 -- --
b73b51a9 506
599dc93c 507
abb0b532 508Allow skipping MD4 file_sum 2002/04/08
33d213bb 509
abb0b532
S
510 If we're doing a local transfer, or using -W, then perhaps don't
511 send the file checksum. If we're doing a local transfer, then
512 calculating MD4 checksums uses 90% of CPU and is unlikely to be
513 useful.
5aafd07b 514
80ffc3de
WD
515 We should not allow it to be disabled separately from -W, though
516 as it is the only thing that lets us know when the rsync algorithm
517 got out of sync and messed the file up (i.e. if the basis file
518 changed between checksum generation and reception).
a2d2e5c0 519
abb0b532 520 -- --
a2d2e5c0 521
62b68c80 522
abb0b532 523Accelerate MD4
62b68c80 524
abb0b532 525 Perhaps borrow an assembler MD4 from someone?
62b68c80 526
abb0b532
S
527 Make sure we call MD4 with properly-sized blocks whenever possible
528 to avoid copying into the residue region?
a2d2e5c0 529
abb0b532 530 -- --
50f2f002 531
abb0b532 532TESTING --------------------------------------------------------------
8ff9d697 533
abb0b532 534Torture test
8ff9d697 535
abb0b532
S
536 Something that just keeps running rsync continuously over a data set
537 likely to generate problems.
8ff9d697 538
abb0b532 539 -- --
62b68c80 540
62b68c80 541
abb0b532 542Cross-test versions 2001/08/22
62b68c80 543
abb0b532
S
544 Part of the regression suite should be making sure that we
545 don't break backwards compatibility: old clients vs new
546 servers and so on. Ideally we would test both up and down
547 from the current release to all old versions.
62b68c80 548
abb0b532 549 Run current rsync versions against significant past releases.
3d90ec14 550
abb0b532
S
551 We might need to omit broken old versions, or versions in which
552 particular functionality is broken
a2d2e5c0 553
abb0b532
S
554 It might be sufficient to test downloads from well-known public
555 rsync servers running different versions of rsync. This will give
556 some testing and also be the most common case for having different
557 versions and not being able to upgrade.
a2d2e5c0 558
abb0b532 559 The new --protocol option may help in this.
a2d2e5c0 560
abb0b532
S
561 -- --
562
563
564Test on kernel source
565
566 Download all versions of kernel; unpack, sync between them. Also
567 sync between uncompressed tarballs. Compare directories after
568 transfer.
569
570 Use local mode; ssh; daemon; --whole-file and --no-whole-file.
571
572 Use awk to pull out the 'speedup' number for each transfer. Make
573 sure it is >= x.
574
575 -- --
576
577
578Test large files
579
580 Sparse and non-sparse
581
582 -- --
583
584
585Create mutator program for testing
586
587 Insert bytes, delete bytes, swap blocks, ...
588
589 -- --
590
591
592Create configure option to enable dangerous tests
593
594 -- --
595
596
597If tests are skipped, say why.
598
599 -- --
600
601
602Test daemon feature to disallow particular options.
603
604 -- --
605
606
607Create pipe program for testing
608
609 Create pipe program that makes slow/jerky connections for
610 testing Versions of read() and write() that corrupt the
611 stream, or abruptly fail
612
613 -- --
614
615
616Create test makefile target for some tests
617
618 Separate makefile target to run rough tests -- or perhaps
619 just run them every time?
620
621 -- --
622
abb0b532 623RELATED PROJECTS -----------------------------------------------------
3d90ec14 624
a577af90 625rsyncsh
46ef7d1d
MP
626
627 Write a small emulation of interactive ftp as a Pythonn program
628 that calls rsync. Commands such as "cd", "ls", "ls *.c" etc map
629 fairly directly into rsync commands: it just needs to remember the
630 current host, directory and so on. We can probably even do
631 completion of remote filenames.
25ff30e8 632
abb0b532 633 -- --
25ff30e8 634
25ff30e8
MP
635
636http://rsync.samba.org/rsync-and-debian/
637
abb0b532
S
638
639 -- --
640
641
25ff30e8
MP
642rsyncable gzip patch
643
644 Exhaustive, tortuous testing
645
646 Cleanups?
647
abb0b532
S
648 -- --
649
650
25ff30e8
MP
651rsyncsplit as alternative to real integration with gzip?
652
abb0b532
S
653 -- --
654
655
25ff30e8
MP
656reverse rsync over HTTP Range
657
658 Goswin Brederlow suggested this on Debian; I think tridge and I
659 talked about it previous in relation to rproxy.
a577af90 660
80ffc3de
WD
661 Addendum: It looks like someone is working on a version of this:
662
663 http://zsync.moria.org.uk/
664
abb0b532 665 -- --
a577af90 666