TODO 15 KB

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