Ticket #393: misc-docs-davidsarah.darcs.patch

File misc-docs-davidsarah.darcs.patch, 94.0 KB (added by davidsarah, at 2011-08-23T02:50:48Z)

Miscellaneous documentation updates (including some for MDMF)

Line 
15 patches for repository davidsarah@dev.allmydata.org:/home/darcs/tahoe/trunk:
2
3Thu Aug 11 00:57:06 BST 2011  david-sarah@jacaranda.org
4  * docs/frontends/webapi.txt: clean up formatting (reflow).
5
6Thu Aug 11 01:00:13 BST 2011  david-sarah@jacaranda.org
7  * docs/frontends/webapi.txt: clean up formatting (tabs->spaces).
8
9Thu Aug 11 01:01:58 BST 2011  david-sarah@jacaranda.org
10  * docs/frontends/webapi.txt: minor corrections; remove reference to test grid.
11
12Fri Aug 12 16:48:08 BST 2011  david-sarah@jacaranda.org
13  * docs/configuration.rst: add section about the types of node, and clarify when setting web.port enables web-API service. refs #1444
14
15Tue Aug 23 02:24:31 BST 2011  david-sarah@jacaranda.org
16  * Minor improvements to documentation for MDMF. refs #393
17
18New patches:
19
20[docs/frontends/webapi.txt: clean up formatting (reflow).
21david-sarah@jacaranda.org**20110810235706
22 Ignore-this: d87a5a64d906067153182056616d4eeb
23] {
24hunk ./docs/frontends/webapi.rst 114
25 actions to upload, rename, and unlink files.
26 
27 When an error occurs, the HTTP response code will be set to an appropriate
28-400-series code (like 404 Not Found for an unknown childname, or 400 Bad Request
29-when the parameters to a web-API operation are invalid), and the HTTP response
30-body will usually contain a few lines of explanation as to the cause of the
31-error and possible responses. Unusual exceptions may result in a 500 Internal
32-Server Error as a catch-all, with a default response body containing
33-a Nevow-generated HTML-ized representation of the Python exception stack trace
34-that caused the problem. CLI programs which want to copy the response body to
35-stderr should provide an "Accept: text/plain" header to their requests to get
36-a plain text stack trace instead. If the Accept header contains ``*/*``, or
37-``text/*``, or text/html (or if there is no Accept header), HTML tracebacks will
38-be generated.
39+400-series code (like 404 Not Found for an unknown childname, or
40+400 Bad Request when the parameters to a web-API operation are invalid), and
41+the HTTP response body will usually contain a few lines of explanation as to
42+the cause of the error and possible responses. Unusual exceptions may result
43+in a 500 Internal Server Error as a catch-all, with a default response body
44+containing a Nevow-generated HTML-ized representation of the Python exception
45+stack trace that caused the problem. CLI programs that want to copy the
46+response body to stderr should provide an "Accept: text/plain" header to
47+their requests to get a plain text stack trace instead. If the Accept header
48+contains ``*/*``, or ``text/*``, or text/html (or if there is no Accept
49+header), HTML tracebacks will be generated.
50 
51 
52 URLs
53hunk ./docs/frontends/webapi.rst 189
54 Child Lookup
55 ------------
56 
57-Tahoe directories contain named child entries, just like directories in a regular
58-local filesystem. These child entries, called "dirnodes", consist of a name,
59-metadata, a write slot, and a read slot. The write and read slots normally contain
60-a write-cap and read-cap referring to the same object, which can be either a file
61-or a subdirectory. The write slot may be empty (actually, both may be empty,
62-but that is unusual).
63+Tahoe directories contain named child entries, just like directories in a
64+regular local filesystem. These child entries, called "dirnodes", consist of
65+a name, metadata, a write slot, and a read slot. The write and read slots
66+normally contain a write-cap and read-cap referring to the same object, which
67+can be either a file or a subdirectory. The write slot may be empty (actually,
68+both may be empty, but that is unusual).
69 
70 If you have a Tahoe URL that refers to a directory, and want to reference a
71 named child inside it, just append the child name to the URL. For example, if
72hunk ./docs/frontends/webapi.rst 365
73  retrieve the same contents that were just uploaded. This will create any
74  necessary intermediate subdirectories.
75 
76- To use the /uri/$FILECAP form, $FILECAP must be a write-cap for a mutable file.
77+ To use the /uri/$FILECAP form, $FILECAP must be a write-cap for a mutable
78+ file.
79 
80  In the /uri/$DIRCAP/[SUBDIRS../]FILENAME form, if the target file is a
81  writeable mutable file, that file's contents will be overwritten
82merger 0.0 (
83hunk ./docs/frontends/webapi.rst 369
84- writeable mutable file, that file's contents will be overwritten in-place. If
85- it is a read-cap for a mutable file, an error will occur. If it is an
86- immutable file, the old file will be discarded, and a new one will be put in
87- its place.
88+ writeable mutable file, that file's contents will be overwritten
89+ in-place. If it is a read-cap for a mutable file, an error will occur.
90+ If it is an immutable file, the old file will be discarded, and a new
91+ one will be put in its place. If the target file is a writable mutable
92+ file, you may also specify an "offset" parameter -- a byte offset that
93+ determines where in the mutable file the data from the HTTP request
94+ body is placed. This operation is relatively efficient for MDMF mutable
95+ files, and is relatively inefficient (but still supported) for SDMF
96+ mutable files. If no offset parameter is specified, then the entire
97+ file is replaced with the data from the HTTP request body. For an
98+ immutable file, the "offset" parameter is not valid.
99hunk ./docs/frontends/webapi.rst 369
100- writeable mutable file, that file's contents will be overwritten in-place. If
101- it is a read-cap for a mutable file, an error will occur. If it is an
102+ writeable mutable file, that file's contents will be overwritten in-place.
103+ If it is a read-cap for a mutable file, an error will occur. If it is an
104)
105hunk ./docs/frontends/webapi.rst 474
106  writing a directory the web-API client should ensure that the contents
107  of "rw_uri" and "ro_uri" for a given PROPDICT are a consistent
108  (write cap, read cap) pair if possible. If the web-API client only has
109- one cap and does not know whether it is a write cap or read cap, then
110- it is acceptable to set "rw_uri" to that cap and omit "ro_uri". The
111- client must not put a write cap into a "ro_uri" field.
112+ one cap and does not know whether it is a write cap or read cap, then it is
113+ acceptable to set "rw_uri" to that cap and omit "ro_uri". The client must
114+ not put a write cap into a "ro_uri" field.
115 
116  The metadata may have a "no-write" field. If this is set to true in the
117  metadata of a link, it will not be possible to open that link for writing
118hunk ./docs/frontends/webapi.rst 502
119  immutable files, literal files, and deep-immutable directories.
120 
121  For forward-compatibility, a deep-immutable directory can also contain caps
122- in a format that is unknown to the web-API server. When such caps are retrieved
123- from a deep-immutable directory in a "ro_uri" field, they will be prefixed
124- with the string "imm.", indicating that they must not be decoded without
125- checking that they are immutable. The "imm." prefix must not be stripped
126- off without performing this check. (Future versions of the web-API server
127- will perform it where necessary.)
128+ in a format that is unknown to the web-API server. When such caps are
129+ retrieved from a deep-immutable directory in a "ro_uri" field, they will be
130+ prefixed with the string "imm.", indicating that they must not be decoded
131+ without checking that they are immutable. The "imm." prefix must not be
132+ stripped off without performing this check. (Future versions of the web-API
133+ server will perform it where necessary.)
134 
135  The cap for each child may be given either in the "rw_uri" or "ro_uri"
136  field of the PROPDICT (not both). If a cap is given in the "rw_uri" field,
137hunk ./docs/frontends/webapi.rst 576
138  the parent names, preventing the server from creating the necessary parent
139  directory, or if it would require changing any immutable directory.
140 
141- The URL of this operation points to the parent of the bottommost new directory,
142- whereas the /uri/$DIRCAP/[SUBDIRS../]SUBDIR?t=mkdir operation above has a URL
143- that points directly to the bottommost new directory.
144+ The URL of this operation points to the parent of the bottommost new
145+ directory, whereas the /uri/$DIRCAP/[SUBDIRS../]SUBDIR?t=mkdir operation
146+ above has a URL that points directly to the bottommost new directory.
147 
148 ``POST /uri/$DIRCAP/[SUBDIRS../]?t=mkdir-with-children&name=NAME``
149 
150hunk ./docs/frontends/webapi.rst 620
151 ``GET /uri/$DIRCAP/[SUBDIRS../]FILENAME?t=json``
152 
153  This returns a machine-parseable JSON-encoded description of the given
154- object. The JSON always contains a list, and the first element of the list is
155- always a flag that indicates whether the referenced object is a file or a
156- directory. If it is a capability to a file, then the information includes
157+ object. The JSON always contains a list, and the first element of the list
158+ is always a flag that indicates whether the referenced object is a file or
159+ a directory. If it is a capability to a file, then the information includes
160  file size and URI, like this::
161 
162   GET /uri/$FILECAP?t=json :
163hunk ./docs/frontends/webapi.rst 804
164    contents-or-metadata change (if "tahoe backup" was run on a different
165    operating system).
166 
167-3. You might be confused by the fact that changing the contents of a
168-   mutable file in Tahoe doesn't have any effect on any links pointing at
169-   that file in any directories, although "tahoe backup" sets the link
170-   'ctime'/'mtime' to reflect timestamps about the local file corresponding
171-   to the Tahoe file to which the link points.
172+3. You might be confused by the fact that changing the contents of a mutable
173+   file in Tahoe doesn't have any effect on any links pointing at that file
174+   in any directories, although "tahoe backup" sets the link 'ctime'/'mtime'
175+   to reflect timestamps about the local file corresponding to the Tahoe file
176+   to which the link points.
177 
178 4. Also, quite apart from Tahoe, you might be confused about the meaning
179    of the "ctime" in UNIX local filesystems, which people sometimes think
180hunk ./docs/frontends/webapi.rst 842
181  location. To prevent this (and make the operation return an error instead
182  of overwriting), add a "replace=false" argument, as "?t=uri&replace=false".
183  With replace=false, this operation will return an HTTP 409 "Conflict" error
184- if there is already an object at the given location, rather than
185- overwriting the existing object. To allow the operation to overwrite a
186- file, but return an error when trying to overwrite a directory, use
187- "replace=only-files" (this behavior is closer to the traditional UNIX "mv"
188- command). Note that "true", "t", and "1" are all synonyms for "True", and
189- "false", "f", and "0" are synonyms for "False", and the parameter is
190- case-insensitive.
191+ if there is already an object at the given location, rather than overwriting
192+ the existing object. To allow the operation to overwrite a file, but return
193+ an error when trying to overwrite a directory, use "replace=only-files"
194+ (this behavior is closer to the traditional UNIX "mv" command). Note that
195+ "true", "t", and "1" are all synonyms for "True", and "false", "f", and "0"
196+ are synonyms for "False", and the parameter is case-insensitive.
197 
198hunk ./docs/frontends/webapi.rst 849
199- Note that this operation does not take its child cap in the form of
200- separate "rw_uri" and "ro_uri" fields. Therefore, it cannot accept a
201- child cap in a format unknown to the web-API server, unless its URI
202- starts with "ro." or "imm.". This restriction is necessary because the
203- server is not able to attenuate an unknown write cap to a read cap.
204- Unknown URIs starting with "ro." or "imm.", on the other hand, are
205- assumed to represent read caps. The client should not prefix a write
206- cap with "ro." or "imm." and pass it to this operation, since that
207- would result in granting the cap's write authority to holders of the
208- directory read cap.
209+ Note that this operation does not take its child cap in the form of separate
210+ "rw_uri" and "ro_uri" fields. Therefore, it cannot accept a child cap in a
211+ format unknown to the web-API server, unless its URI starts with "ro." or
212+ "imm.". This restriction is necessary because the server is not able to
213+ attenuate an unknown write cap to a read cap. Unknown URIs starting with
214+ "ro." or "imm.", on the other hand, are assumed to represent read caps.
215+ The client should not prefix a write cap with "ro." or "imm." and pass it
216+ to this operation, since that would result in granting the cap's write
217+ authority to holders of the directory read cap.
218 
219 
220 Adding Multiple Files or Directories to a Parent Directory at Once
221hunk ./docs/frontends/webapi.rst 875
222  "children" value returned by the "GET /uri/$DIRCAP?t=json" operation
223  described above. In this format, each key is a child names, and the
224  corresponding value is a tuple of (type, childinfo). "type" is ignored, and
225- "childinfo" is a dictionary that contains "rw_uri", "ro_uri", and
226- "metadata" keys. You can take the output of "GET /uri/$DIRCAP1?t=json" and
227- use it as the input to "POST /uri/$DIRCAP2?t=set_children" to make DIR2
228- look very much like DIR1 (except for any existing children of DIR2 that
229- were not overwritten, and any existing "tahoe" metadata keys as described
230- below).
231+ "childinfo" is a dictionary that contains "rw_uri", "ro_uri", and "metadata"
232+ keys. You can take the output of "GET /uri/$DIRCAP1?t=json" and use it as
233+ the input to "POST /uri/$DIRCAP2?t=set_children" to make DIR2 look very
234+ much like DIR1 (except for any existing children of DIR2 that were not
235+ overwritten, and any existing "tahoe" metadata keys as described below).
236 
237  When the set_children request contains a child name that already exists in
238  the target directory, this command defaults to overwriting that child with
239hunk ./docs/frontends/webapi.rst 1193
240  unlinked from the parent. Unlike deleting a subdirectory in a UNIX local
241  filesystem, the subtree need not be empty; if it isn't, then other references
242  into the subtree will see that the child subdirectories are not modified by
243- this operation. Only the link from the given directory to its child is severed.
244+ this operation. Only the link from the given directory to its child is
245+ severed.
246 
247hunk ./docs/frontends/webapi.rst 1196
248- In Tahoe-LAFS v1.9.0 and later, t=unlink can be used as a synonym for t=delete.
249- If interoperability with older web-API servers is required, t=delete should
250- be used.
251+ In Tahoe-LAFS v1.9.0 and later, t=unlink can be used as a synonym for
252+ t=delete. If interoperability with older web-API servers is required,
253+ t=delete should be used.
254 
255 
256 Renaming A Child
257hunk ./docs/frontends/webapi.rst 1860
258 Tahoe provides a mutable filesystem, but the ways that the filesystem can
259 change are limited. The only thing that can change is that the mapping from
260 child names to child objects that each directory contains can be changed by
261-adding a new child name pointing to an object, removing an existing child name,
262-or changing an existing child name to point to a different object.
263+adding a new child name pointing to an object, removing an existing child
264+name, or changing an existing child name to point to a different object.
265 
266 Obviously if you query Tahoe for information about the filesystem and then act
267 to change the filesystem (such as by getting a listing of the contents of a
268hunk ./docs/frontends/webapi.rst 1870
269 if you use the URI instead of the pathname of an object when you act upon the
270 object, then the only change that can happen is if the object is a directory
271 then the set of child names it has might be different. If, on the other hand,
272-you act upon the object using its pathname, then a different object might be in
273-that place, which can result in more kinds of surprises.
274+you act upon the object using its pathname, then a different object might be
275+in that place, which can result in more kinds of surprises.
276 
277 For example, suppose you are writing code which recursively downloads the
278 contents of a directory. The first thing your code does is fetch the listing
279hunk ./docs/frontends/webapi.rst 1946
280 Tahoe-1.1; back with Tahoe-1.0 the web client was responsible for serializing
281 web requests themselves).
282 
283-For more details, please see the "Consistency vs Availability" and "The Prime
284-Coordination Directive" sections of `mutable.rst <../specifications/mutable.rst>`_.
285+For more details, please see the "Consistency vs Availability" and
286+"The Prime Coordination Directive" sections of `mutable.rst
287+<../specifications/mutable.rst>`_.
288 
289 
290 .. [1] URLs and HTTP and UTF-8, Oh My
291hunk ./docs/frontends/webapi.rst 1960
292  URL-escaped UTF-8 encoded Unicode string.
293  For example, suppose we want to provoke the server into using a filename of
294  "f i a n c e-acute e" (i.e. f i a n c U+00E9 e). The UTF-8 encoding of this
295- is 0x66 0x69 0x61 0x6e 0x63 0xc3 0xa9 0x65 (or "fianc\\xC3\\xA9e", as python's
296- ``repr()`` function would show). To encode this into a URL, the non-printable
297- characters must be escaped with the urlencode ``%XX`` mechanism, giving
298- us "fianc%C3%A9e". Thus, the first line of the HTTP request will be
299- "``GET /uri/CAP...?save=true&filename=fianc%C3%A9e HTTP/1.1``". Not all
300- browsers provide this: IE7 by default uses the Latin-1 encoding, which is
301- "fianc%E9e" (although it has a configuration option to send URLs as UTF-8).
302+ is 0x66 0x69 0x61 0x6e 0x63 0xc3 0xa9 0x65 (or "fianc\\xC3\\xA9e", as
303+ Python's ``repr()`` function would show). To encode this into a URL, the
304+ non-printable characters must be escaped with the urlencode ``%XX``
305+ mechanism, giving us "fianc%C3%A9e". Thus, the first line of the HTTP request
306+ will be "``GET /uri/CAP...?save=true&filename=fianc%C3%A9e HTTP/1.1``".
307+ Not all browsers provide this: IE7 by default uses the Latin-1 encoding,
308+ which is "fianc%E9e" (although it has a configuration option to send URLs
309+ as UTF-8).
310 
311  The response header will need to indicate a non-ASCII filename. The actual
312  mechanism to do this is not clear. For ASCII filenames, the response header
313}
314[docs/frontends/webapi.txt: clean up formatting (tabs->spaces).
315david-sarah@jacaranda.org**20110811000013
316 Ignore-this: 4021abb804775e78fe317d577d8e4803
317] {
318hunk ./docs/frontends/webapi.rst 9
319 2.  `Basic Concepts: GET, PUT, DELETE, POST`_
320 3.  `URLs`_
321 
322-       1. `Child Lookup`_
323+    1. `Child Lookup`_
324 
325 4.  `Slow Operations, Progress, and Cancelling`_
326 5.  `Programmatic Operations`_
327hunk ./docs/frontends/webapi.rst 628
328   GET /uri/$FILECAP?t=json :
329 
330    [ "filenode", {
331-        "ro_uri": file_uri,
332-        "verify_uri": verify_uri,
333-        "size": bytes,
334-        "mutable": false
335-        } ]
336+       "ro_uri": file_uri,
337+       "verify_uri": verify_uri,
338+       "size": bytes,
339+       "mutable": false
340+       } ]
341 
342  If it is a capability to a directory followed by a path from that directory
343  to a file, then the information also includes metadata from the link to the
344hunk ./docs/frontends/webapi.rst 641
345   GET /uri/$DIRCAP/[SUBDIRS../]FILENAME?t=json
346 
347    [ "filenode", {
348-        "ro_uri": file_uri,
349-        "verify_uri": verify_uri,
350-        "size": bytes,
351-        "mutable": false,
352-        "metadata": {
353-          "ctime": 1202777696.7564139,
354-          "mtime": 1202777696.7564139,
355-          "tahoe": {
356-                "linkcrtime": 1202777696.7564139,
357-                "linkmotime": 1202777696.7564139
358-                } } } ]
359+       "ro_uri": file_uri,
360+       "verify_uri": verify_uri,
361+       "size": bytes,
362+       "mutable": false,
363+       "metadata": {
364+         "ctime": 1202777696.7564139,
365+         "mtime": 1202777696.7564139,
366+         "tahoe": {
367+           "linkcrtime": 1202777696.7564139,
368+           "linkmotime": 1202777696.7564139
369+           } } } ]
370 
371  If it is a directory, then it includes information about the children of
372  this directory, as a mapping from child name to a set of data about the
373hunk ./docs/frontends/webapi.rst 664
374   GET /uri/$DIRCAP/[SUBDIRS../]SUBDIR?t=json :
375 
376    [ "dirnode", {
377-        "rw_uri": read_write_uri,
378-        "ro_uri": read_only_uri,
379-        "verify_uri": verify_uri,
380-        "mutable": true,
381-        "children": {
382-          "foo.txt": [ "filenode", {
383-                  "ro_uri": uri,
384-                  "size": bytes,
385-                  "metadata": {
386-                        "ctime": 1202777696.7564139,
387-                        "mtime": 1202777696.7564139,
388-                        "tahoe": {
389-                          "linkcrtime": 1202777696.7564139,
390-                          "linkmotime": 1202777696.7564139
391-                          } } } ],
392-          "subdir":  [ "dirnode", {
393-                  "rw_uri": rwuri,
394-                  "ro_uri": rouri,
395-                  "metadata": {
396-                        "ctime": 1202778102.7589991,
397-                        "mtime": 1202778111.2160511,
398-                        "tahoe": {
399-                          "linkcrtime": 1202777696.7564139,
400-                          "linkmotime": 1202777696.7564139
401-                        } } } ]
402-        } } ]
403+       "rw_uri": read_write_uri,
404+       "ro_uri": read_only_uri,
405+       "verify_uri": verify_uri,
406+       "mutable": true,
407+       "children": {
408+         "foo.txt": [ "filenode", {
409+             "ro_uri": uri,
410+             "size": bytes,
411+             "metadata": {
412+               "ctime": 1202777696.7564139,
413+               "mtime": 1202777696.7564139,
414+               "tahoe": {
415+                 "linkcrtime": 1202777696.7564139,
416+                 "linkmotime": 1202777696.7564139
417+                 } } } ],
418+         "subdir":  [ "dirnode", {
419+             "rw_uri": rwuri,
420+             "ro_uri": rouri,
421+             "metadata": {
422+               "ctime": 1202778102.7589991,
423+               "mtime": 1202778111.2160511,
424+               "tahoe": {
425+                 "linkcrtime": 1202777696.7564139,
426+                 "linkmotime": 1202777696.7564139
427+               } } } ]
428+       } } ]
429 
430  In the above example, note how 'children' is a dictionary in which the keys
431  are child names and the values depend upon whether the child is a file or a
432hunk ./docs/frontends/webapi.rst 709
433   GET /uri/$UNKNOWNCAP?t=json :
434 
435    [ "unknown", {
436-        "ro_uri": unknown_read_uri
437-        } ]
438+       "ro_uri": unknown_read_uri
439+       } ]
440 
441   GET /uri/$DIRCAP/[SUBDIRS../]UNKNOWNCHILDNAME?t=json :
442 
443hunk ./docs/frontends/webapi.rst 715
444    [ "unknown", {
445-        "rw_uri": unknown_write_uri,
446-        "ro_uri": unknown_read_uri,
447-        "mutable": true,
448-        "metadata": {
449-          "ctime": 1202777696.7564139,
450-          "mtime": 1202777696.7564139,
451-          "tahoe": {
452-                "linkcrtime": 1202777696.7564139,
453-                "linkmotime": 1202777696.7564139
454-                } } } ]
455+       "rw_uri": unknown_write_uri,
456+       "ro_uri": unknown_read_uri,
457+       "mutable": true,
458+       "metadata": {
459+         "ctime": 1202777696.7564139,
460+         "mtime": 1202777696.7564139,
461+         "tahoe": {
462+           "linkcrtime": 1202777696.7564139,
463+           "linkmotime": 1202777696.7564139
464+           } } } ]
465 
466  As in the case of file nodes, the metadata will only be present when the
467  capability is to a directory followed by a path. The "mutable" field is also
468hunk ./docs/frontends/webapi.rst 1274
469  dictionary with the following keys::
470 
471   storage-index: a base32-encoded string with the objects's storage index,
472-                                or an empty string for LIT files
473+                 or an empty string for LIT files
474   summary: a string, with a one-line summary of the stats of the file
475   results: a dictionary that describes the state of the file. For LIT files,
476hunk ./docs/frontends/webapi.rst 1277
477-                  this dictionary has only the 'healthy' key, which will always be
478-                  True. For distributed files, this dictionary has the following
479-                  keys:
480-       count-shares-good: the number of good shares that were found
481-       count-shares-needed: 'k', the number of shares required for recovery
482-       count-shares-expected: 'N', the number of total shares generated
483-       count-good-share-hosts: this was intended to be the number of distinct
484-                                                       storage servers with good shares. It is currently
485-                                                       (as of Tahoe-LAFS v1.8.0) computed incorrectly;
486-                                                       see ticket #1115.
487-       count-wrong-shares: for mutable files, the number of shares for
488-                                               versions other than the 'best' one (highest
489-                                               sequence number, highest roothash). These are
490-                                               either old ...
491-       count-recoverable-versions: for mutable files, the number of
492-                                                               recoverable versions of the file. For
493-                                                               a healthy file, this will equal 1.
494-       count-unrecoverable-versions: for mutable files, the number of
495-                                                                 unrecoverable versions of the file.
496-                                                                 For a healthy file, this will be 0.
497-       count-corrupt-shares: the number of shares with integrity failures
498-       list-corrupt-shares: a list of "share locators", one for each share
499-                                                that was found to be corrupt. Each share locator
500-                                                is a list of (serverid, storage_index, sharenum).
501-       needs-rebalancing: (bool) True if there are multiple shares on a single
502-                                          storage server, indicating a reduction in reliability
503-                                          that could be resolved by moving shares to new
504-                                          servers.
505-       servers-responding: list of base32-encoded storage server identifiers,
506-                                               one for each server which responded to the share
507-                                               query.
508-       healthy: (bool) True if the file is completely healthy, False otherwise.
509-                        Healthy files have at least N good shares. Overlapping shares
510-                        do not currently cause a file to be marked unhealthy. If there
511-                        are at least N good shares, then corrupt shares do not cause the
512-                        file to be marked unhealthy, although the corrupt shares will be
513-                        listed in the results (list-corrupt-shares) and should be manually
514-                        removed to wasting time in subsequent downloads (as the
515-                        downloader rediscovers the corruption and uses alternate shares).
516-                        Future compatibility: the meaning of this field may change to
517-                        reflect whether the servers-of-happiness criterion is met
518-                        (see ticket #614).
519-       sharemap: dict mapping share identifier to list of serverids
520-                         (base32-encoded strings). This indicates which servers are
521-                         holding which shares. For immutable files, the shareid is
522-                         an integer (the share number, from 0 to N-1). For
523-                         immutable files, it is a string of the form
524-                         'seq%d-%s-sh%d', containing the sequence number, the
525-                         roothash, and the share number.
526+           this dictionary has only the 'healthy' key, which will always be
527+           True. For distributed files, this dictionary has the following
528+           keys:
529+    count-shares-good: the number of good shares that were found
530+    count-shares-needed: 'k', the number of shares required for recovery
531+    count-shares-expected: 'N', the number of total shares generated
532+    count-good-share-hosts: this was intended to be the number of distinct
533+                            storage servers with good shares. It is currently
534+                            (as of Tahoe-LAFS v1.8.0) computed incorrectly;
535+                            see ticket #1115.
536+    count-wrong-shares: for mutable files, the number of shares for
537+                        versions other than the 'best' one (highest
538+                        sequence number, highest roothash). These are
539+                        either old ...
540+    count-recoverable-versions: for mutable files, the number of
541+                                recoverable versions of the file. For
542+                                a healthy file, this will equal 1.
543+    count-unrecoverable-versions: for mutable files, the number of
544+                                  unrecoverable versions of the file.
545+                                  For a healthy file, this will be 0.
546+    count-corrupt-shares: the number of shares with integrity failures
547+    list-corrupt-shares: a list of "share locators", one for each share
548+                         that was found to be corrupt. Each share locator
549+                         is a list of (serverid, storage_index, sharenum).
550+    needs-rebalancing: (bool) True if there are multiple shares on a single
551+                       storage server, indicating a reduction in reliability
552+                       that could be resolved by moving shares to new
553+                       servers.
554+    servers-responding: list of base32-encoded storage server identifiers,
555+                        one for each server which responded to the share
556+                        query.
557+    healthy: (bool) True if the file is completely healthy, False otherwise.
558+             Healthy files have at least N good shares. Overlapping shares
559+             do not currently cause a file to be marked unhealthy. If there
560+             are at least N good shares, then corrupt shares do not cause the
561+             file to be marked unhealthy, although the corrupt shares will be
562+             listed in the results (list-corrupt-shares) and should be
563+             manually removed to wasting time in subsequent downloads (as the
564+             downloader rediscovers the corruption and uses alternate shares).
565+             Future compatibility: the meaning of this field may change to
566+             reflect whether the servers-of-happiness criterion is met
567+             (see ticket #614).
568+    sharemap: dict mapping share identifier to list of serverids
569+              (base32-encoded strings). This indicates which servers are
570+              holding which shares. For immutable files, the shareid is
571+              an integer (the share number, from 0 to N-1). For
572+              immutable files, it is a string of the form
573+              'seq%d-%s-sh%d', containing the sequence number, the
574+              roothash, and the share number.
575 
576 ``POST $URL?t=start-deep-check``    (must add &ophandle=XYZ)
577 
578hunk ./docs/frontends/webapi.rst 1360
579  machine-readable JSON dictionary with the following keys::
580 
581   finished: a boolean, True if the operation is complete, else False. Some
582-                       of the remaining keys may not be present until the operation
583-                       is complete.
584+            of the remaining keys may not be present until the operation
585+            is complete.
586   root-storage-index: a base32-encoded string with the storage index of the
587hunk ./docs/frontends/webapi.rst 1363
588-                                         starting point of the deep-check operation
589+                      starting point of the deep-check operation
590   count-objects-checked: count of how many objects were checked. Note that
591hunk ./docs/frontends/webapi.rst 1365
592-                                                non-distributed objects (i.e. small immutable LIT
593-                                                files) are not checked, since for these objects,
594-                                                the data is contained entirely in the URI.
595+                         non-distributed objects (i.e. small immutable LIT
596+                         files) are not checked, since for these objects,
597+                         the data is contained entirely in the URI.
598   count-objects-healthy: how many of those objects were completely healthy
599   count-objects-unhealthy: how many were damaged in some way
600   count-corrupt-shares: how many shares were found to have corruption,
601hunk ./docs/frontends/webapi.rst 1371
602-                                               summed over all objects examined
603+                        summed over all objects examined
604   list-corrupt-shares: a list of "share identifiers", one for each share
605hunk ./docs/frontends/webapi.rst 1373
606-                                          that was found to be corrupt. Each share identifier
607-                                          is a list of (serverid, storage_index, sharenum).
608+                       that was found to be corrupt. Each share identifier
609+                       is a list of (serverid, storage_index, sharenum).
610   list-unhealthy-files: a list of (pathname, check-results) tuples, for
611hunk ./docs/frontends/webapi.rst 1376
612-                                               each file that was not fully healthy. 'pathname' is
613-                                               a list of strings (which can be joined by "/"
614-                                               characters to turn it into a single string),
615-                                               relative to the directory on which deep-check was
616-                                               invoked. The 'check-results' field is the same as
617-                                               that returned by t=check&output=JSON, described
618-                                               above.
619+                        each file that was not fully healthy. 'pathname' is
620+                        a list of strings (which can be joined by "/"
621+                        characters to turn it into a single string),
622+                        relative to the directory on which deep-check was
623+                        invoked. The 'check-results' field is the same as
624+                        that returned by t=check&output=JSON, described
625+                        above.
626   stats: a dictionary with the same keys as the t=start-deep-stats command
627hunk ./docs/frontends/webapi.rst 1384
628-                (described below)
629+         (described below)
630 
631 ``POST $URL?t=stream-deep-check``
632 
633hunk ./docs/frontends/webapi.rst 1452
634  will contain the following keys::
635 
636   storage-index: a base32-encoded string with the objects's storage index,
637-                                or an empty string for LIT files
638+                 or an empty string for LIT files
639   repair-attempted: (bool) True if repair was attempted
640   repair-successful: (bool) True if repair was attempted and the file was
641hunk ./docs/frontends/webapi.rst 1455
642-                                        fully healthy afterwards. False if no repair was
643-                                        attempted, or if a repair attempt failed.
644+                     fully healthy afterwards. False if no repair was
645+                     attempted, or if a repair attempt failed.
646   pre-repair-results: a dictionary that describes the state of the file
647hunk ./docs/frontends/webapi.rst 1458
648-                                         before any repair was performed. This contains exactly
649-                                         the same keys as the 'results' value of the t=check
650-                                         response, described above.
651+                      before any repair was performed. This contains exactly
652+                      the same keys as the 'results' value of the t=check
653+                      response, described above.
654   post-repair-results: a dictionary that describes the state of the file
655hunk ./docs/frontends/webapi.rst 1462
656-                                          after any repair was performed. If no repair was
657-                                          performed, post-repair-results and pre-repair-results
658-                                          will be the same. This contains exactly the same keys
659-                                          as the 'results' value of the t=check response,
660-                                          described above.
661+                       after any repair was performed. If no repair was
662+                       performed, post-repair-results and pre-repair-results
663+                       will be the same. This contains exactly the same keys
664+                       as the 'results' value of the t=check response,
665+                       described above.
666 
667 ``POST $URL?t=start-deep-check&repair=true``    (must add &ophandle=XYZ)
668 
669hunk ./docs/frontends/webapi.rst 1484
670 
671   finished: (bool) True if the operation has completed, else False
672   root-storage-index: a base32-encoded string with the storage index of the
673-                                         starting point of the deep-check operation
674+                      starting point of the deep-check operation
675   count-objects-checked: count of how many objects were checked
676 
677   count-objects-healthy-pre-repair: how many of those objects were completely
678hunk ./docs/frontends/webapi.rst 1488
679-                                                                       healthy, before any repair
680+                                    healthy, before any repair
681   count-objects-unhealthy-pre-repair: how many were damaged in some way
682   count-objects-healthy-post-repair: how many of those objects were completely
683hunk ./docs/frontends/webapi.rst 1491
684-                                                                         healthy, after any repair
685+                                      healthy, after any repair
686   count-objects-unhealthy-post-repair: how many were damaged in some way
687 
688   count-repairs-attempted: repairs were attempted on this many objects.
689hunk ./docs/frontends/webapi.rst 1497
690   count-repairs-successful: how many repairs resulted in healthy objects
691   count-repairs-unsuccessful: how many repairs resulted did not results in
692-                                                         completely healthy objects
693+                              completely healthy objects
694   count-corrupt-shares-pre-repair: how many shares were found to have
695hunk ./docs/frontends/webapi.rst 1499
696-                                                                  corruption, summed over all objects
697-                                                                  examined, before any repair
698+                                   corruption, summed over all objects
699+                                   examined, before any repair
700   count-corrupt-shares-post-repair: how many shares were found to have
701hunk ./docs/frontends/webapi.rst 1502
702-                                                                       corruption, summed over all objects
703-                                                                       examined, after any repair
704+                                    corruption, summed over all objects
705+                                    examined, after any repair
706   list-corrupt-shares: a list of "share identifiers", one for each share
707hunk ./docs/frontends/webapi.rst 1505
708-                                          that was found to be corrupt (before any repair).
709-                                          Each share identifier is a list of (serverid,
710-                                          storage_index, sharenum).
711+                       that was found to be corrupt (before any repair).
712+                       Each share identifier is a list of (serverid,
713+                       storage_index, sharenum).
714   list-remaining-corrupt-shares: like list-corrupt-shares, but mutable shares
715hunk ./docs/frontends/webapi.rst 1509
716-                                                                that were successfully repaired are not
717-                                                                included. These are shares that need
718-                                                                manual processing. Since immutable shares
719-                                                                cannot be modified by clients, all corruption
720-                                                                in immutable shares will be listed here.
721+                                 that were successfully repaired are not
722+                                 included. These are shares that need
723+                                 manual processing. Since immutable shares
724+                                 cannot be modified by clients, all corruption
725+                                 in immutable shares will be listed here.
726   list-unhealthy-files: a list of (pathname, check-results) tuples, for
727hunk ./docs/frontends/webapi.rst 1515
728-                                               each file that was not fully healthy. 'pathname' is
729-                                               relative to the directory on which deep-check was
730-                                               invoked. The 'check-results' field is the same as
731-                                               that returned by t=check&repair=true&output=JSON,
732-                                               described above.
733+                        each file that was not fully healthy. 'pathname' is
734+                        relative to the directory on which deep-check was
735+                        invoked. The 'check-results' field is the same as
736+                        that returned by t=check&repair=true&output=JSON,
737+                        described above.
738   stats: a dictionary with the same keys as the t=start-deep-stats command
739hunk ./docs/frontends/webapi.rst 1521
740-                (described below)
741+         (described below)
742 
743 ``POST $URL?t=stream-deep-check&repair=true``
744 
745hunk ./docs/frontends/webapi.rst 1577
746   verifycaps: list of (printable) verify cap strings
747   storage-index: list of (base32) storage index strings
748   stats: a dictionary with the same keys as the t=start-deep-stats command
749-                (described below)
750+         (described below)
751 
752 ``POST $DIRURL?t=start-deep-size``   (must add &ophandle=XYZ)
753 
754hunk ./docs/frontends/webapi.rst 1615
755   size-literal-files: same, for LIT files
756   size-directories: size of directories (includes size-literal-files)
757   size-files-histogram: list of (minsize, maxsize, count) buckets,
758-                                               with a histogram of filesizes, 5dB/bucket,
759-                                               for both literal and immutable files
760+                        with a histogram of filesizes, 5dB/bucket,
761+                        for both literal and immutable files
762   largest-directory: number of children in the largest directory
763   largest-immutable-file: number of bytes in the largest CHK file
764 
765hunk ./docs/frontends/webapi.rst 1726
766   progress-hash (float): 1.0 when the file has been hashed
767   progress-ciphertext (float): 1.0 when the file has been encrypted.
768   progress-encode-push (float): 1.0 when the file has been encoded and
769-                                                               pushed to the storage servers. For helper
770-                                                               uploads, the ciphertext value climbs to 1.0
771-                                                               first, then encoding starts. For unassisted
772-                                                               uploads, ciphertext and encode-push progress
773-                                                               will climb at the same pace.
774+                                pushed to the storage servers. For helper
775+                                uploads, the ciphertext value climbs to 1.0
776+                                first, then encoding starts. For unassisted
777+                                uploads, ciphertext and encode-push progress
778+                                will climb at the same pace.
779 
780  The "download" op-dict will contain the following keys::
781 
782}
783[docs/frontends/webapi.txt: minor corrections; remove reference to test grid.
784david-sarah@jacaranda.org**20110811000158
785 Ignore-this: c7adcad548440755902af78f4b424378
786] {
787hunk ./docs/frontends/webapi.rst 158
788 
789  http://127.0.0.1:3456/uri/ + $CAP
790 
791-So, to access the directory named above (which happens to be the
792-publically-writeable sample directory on the Tahoe test grid, described at
793-http://allmydata.org/trac/tahoe/wiki/TestGrid), the URL would be::
794+So, to access the directory named above, the URL would be::
795 
796  http://127.0.0.1:3456/uri/URI%3ADIR2%3Adjrdkfawoqihigoett4g6auz6a%3Ajx5mplfpwexnoqff7y5e4zjus4lidm76dcuarpct7cckorh2dpgq/
797 
798hunk ./docs/frontends/webapi.rst 1184
799 
800 ``POST /uri/$DIRCAP/[SUBDIRS../]?t=delete&name=CHILDNAME``
801 
802-``POST /uri/$DIRCAP/[SUBDIRS../]?t=unlink&name=CHILDNAME``
803+``POST /uri/$DIRCAP/[SUBDIRS../]?t=unlink&name=CHILDNAME``    (Tahoe >= v1.9)
804 
805  This instructs the node to remove a child object (file or subdirectory) from
806  the given directory, which must be mutable. Note that the entire subtree is
807hunk ./docs/frontends/webapi.rst 1288
808     count-wrong-shares: for mutable files, the number of shares for
809                         versions other than the 'best' one (highest
810                         sequence number, highest roothash). These are
811-                        either old ...
812+                        either old, or created by an uncoordinated write.
813     count-recoverable-versions: for mutable files, the number of
814                                 recoverable versions of the file. For
815                                 a healthy file, this will equal 1.
816}
817[docs/configuration.rst: add section about the types of node, and clarify when setting web.port enables web-API service. refs #1444
818david-sarah@jacaranda.org**20110812154808
819 Ignore-this: 817e49edf648f8ec8a291ae11aaa6a96
820] {
821hunk ./docs/configuration.rst 5
822 Configuring a Tahoe-LAFS node
823 =============================
824 
825-1.  `Overall Node Configuration`_
826-2.  `Client Configuration`_
827-3.  `Storage Server Configuration`_
828-4.  `Frontend Configuration`_
829-5.  `Running A Helper`_
830-6.  `Running An Introducer`_
831-7.  `Other Files in BASEDIR`_
832-8.  `Other files`_
833-9.  `Backwards Compatibility Files`_
834-10. `Example`_
835+1.  `Node Types`_
836+2.  `Overall Node Configuration`_
837+3.  `Client Configuration`_
838+4.  `Storage Server Configuration`_
839+5.  `Frontend Configuration`_
840+6.  `Running A Helper`_
841+7.  `Running An Introducer`_
842+8.  `Other Files in BASEDIR`_
843+9.  `Other files`_
844+10. `Backwards Compatibility Files`_
845+11. `Example`_
846 
847hunk ./docs/configuration.rst 17
848-A Tahoe-LAFS node is configured by writing to files in its base
849-directory. These files are read by the node when it starts, so each time you
850-change them, you need to restart the node.
851+
852+A Tahoe-LAFS node is configured by writing to files in its base directory.
853+These files are read by the node when it starts, so each time you change them,
854+you need to restart the node.
855 
856 The node also writes state to its base directory, so it will create files on
857 its own.
858hunk ./docs/configuration.rst 57
859     ``pb://soklj4y7eok5c3xkmjeqpw@192.168.69.247:44801/eqpwqtzm``
860 
861 
862+Node Types
863+==========
864+
865+A node can be a client/server, an introducer, a statistics gatherer, or a
866+key generator.
867+
868+Client/server nodes provide one or more of the following services:
869+
870+* web-API service
871+* SFTP service
872+* FTP service
873+* drop-upload service
874+* helper service
875+* storage service.
876+
877+A client/server node that provides storage service (i.e. storing shares for
878+other nodes) is called a "storage server". If it provides any of the other
879+services, it is a "storage client". A client/server node that provides
880+web-API service is called a "gateway".
881+
882+
883 Overall Node Configuration
884 ==========================
885 
886hunk ./docs/configuration.rst 83
887 This section controls the network behavior of the node overall: which ports
888 and IP addresses are used, when connections are timed out, etc. This
889-configuration is independent of the services that the node is offering: the
890-same controls are used for client and introducer nodes.
891+configuration applies to all node types and is independent of the services
892+that the node is offering.
893 
894 If your node is behind a firewall or NAT device and you want other clients to
895 connect to it, you'll need to open a port in the firewall or NAT, and specify
896hunk ./docs/configuration.rst 101
897 
898 ``web.port = (strports string, optional)``
899 
900-    This controls where the node's webserver should listen, providing
901-    filesystem access and node status as defined in
902-    `<frontends/webapi.rst>`_. This file contains a Twisted "strports"
903-    specification such as "``3456``" or "``tcp:3456:interface=127.0.0.1``".
904-    The "``tahoe create-node``" or "``tahoe create-client``" commands set the
905-    ``web.port`` to "``tcp:3456:interface=127.0.0.1``" by default; this is
906-    overridable by the ``--webport`` option. You can make it use SSL by
907-    writing "``ssl:3456:privateKey=mykey.pem:certKey=cert.pem``" instead.
908+    This controls where the node's web server should listen, providing node
909+    status and, if the node is a client/server, providing web-API service
910+    as defined in `webapi.rst <frontends/webapi.rst>_`.
911+
912+    This file contains a Twisted "strports" specification such as "``3456``"
913+    or "``tcp:3456:interface=127.0.0.1``". The "``tahoe create-node``" or
914+    "``tahoe create-client``" commands set the ``web.port`` to
915+    "``tcp:3456:interface=127.0.0.1``" by default; this is overridable by
916+    the ``--webport`` option. You can make it use SSL by writing
917+    "``ssl:3456:privateKey=mykey.pem:certKey=cert.pem``" instead.
918 
919     If this is not provided, the node will not run a web server.
920 
921}
922[Minor improvements to documentation for MDMF. refs #393
923david-sarah@jacaranda.org**20110823012431
924 Ignore-this: 7a1b1b3a8aea0d69cbc0ed93beb2c7f1
925] {
926hunk ./docs/configuration.rst 357
927 ``mutable.format = sdmf or mdmf``
928 
929     This value tells Tahoe-LAFS what the default mutable file format should
930-    be. If ``mutable.format=sdmf``, then newly created mutable files will be
931-    in the old SDMF format. This is desirable for clients that operate on
932-    grids where some peers run older versions of Tahoe-LAFS, as these older
933-    versions cannot read the new MDMF mutable file format. If
934-    ``mutable.format`` is ``mdmf``, then newly created mutable files will use
935-    the new MDMF format, which supports efficient in-place modification and
936-    streaming downloads. You can overwrite this value using a special
937-    mutable-type parameter in the webapi. If you do not specify a value here,
938-    Tahoe-LAFS will use SDMF for all newly-created mutable files.
939+    be. If ``mutable.format=sdmf``, then newly created mutable files will by
940+    default be in the SDMF format. This is desirable for clients that operate
941+    on grids where some peers run versions of Tahoe-LAFS prior to v1.9.0, as
942+    these older versions cannot read the new MDMF mutable file format. If
943+    ``mutable.format`` is ``mdmf``, then newly created mutable files will by
944+    default use the new MDMF format, which supports efficient in-place
945+    modification and streaming downloads. You can override this value using a
946+    ``mutable-type`` query parameter in the web-API or a ``--mutable-type=``
947+    option in CLI commands. If you do not specify a value here, Tahoe-LAFS
948+    will use SDMF as the format for newly-created mutable files when the
949+    ``mutable-type`` query parameter or option is not specified.
950 
951     Note that this parameter only applies to mutable files. Mutable
952     directories, which are stored as mutable files, are not controlled by
953hunk ./docs/configuration.rst 374
954     this parameter and will always use SDMF. We may revisit this decision
955     in future versions of Tahoe-LAFS.
956 
957+
958 Frontend Configuration
959 ======================
960 
961hunk ./docs/frontends/webapi.rst 367
962  file.
963 
964  In the /uri/$DIRCAP/[SUBDIRS../]FILENAME form, if the target file is a
965- writeable mutable file, that file's contents will be overwritten in-place. If
966- it is a read-cap for a mutable file, an error will occur. If it is an
967- immutable file, the old file will be discarded, and a new one will be put in
968- its place.
969+ writeable mutable file, that file's contents will be overwritten in-place.
970+ If it is a read-cap for a mutable file, an error will occur. If it is an
971+ immutable file, the old file will be discarded, and a new one will be put
972+ in its place. If the target file is a writeable mutable file, you may also
973+ specify an "offset" parameter -- a byte offset that determines where in
974+ the mutable file the data from the HTTP request body will be placed. This
975+ operation is relatively efficient for MDMF mutable files, and is relatively
976+ inefficient (but still supported) for SDMF mutable files. If no offset
977+ parameter is specified, then the entire file will be replaced with the data
978+ from the HTTP request body. For an immutable file, the "offset" parameter
979+ is not valid.
980 
981  When creating a new file, if "mutable=true" is in the query arguments, the
982  operation will create a mutable file instead of an immutable one.
983hunk ./docs/frontends/webapi.rst 397
984  this operation. The file-cap is returned as the body of the HTTP response.
985 
986  If "mutable=true" is in the query arguments, the operation will create a
987- mutable file, and return its write-cap in the HTTP respose. The default is
988- to create an immutable file, returning the read-cap as a response. If
989+ mutable file, and return its write-cap in the HTTP response. The default
990+ is to create an immutable file, returning the read-cap as a response. If
991  you create a mutable file, you can also use the "mutable-type" query
992  parameter. If "mutable-type=sdmf", then the mutable file will be created
993hunk ./docs/frontends/webapi.rst 401
994- in the old SDMF mutable file format. This is desirable for files that
995- need to be read by old clients. If "mutable-type=mdmf", then the file
996- will be created in the new MDMF mutable file format. MDMF mutable files
997- can be downloaded more efficiently, and modified in-place efficiently,
998- but are not compatible with older versions of Tahoe-LAFS. If no
999- "mutable-type" argument is given, the file is created in whatever
1000- format was configured in tahoe.cfg.
1001+ in the SDMF mutable file format. This is desirable for files that need to
1002+ be read by clients of a Tahoe-LAFS version prior to v1.9.0. If
1003+ "mutable-type=mdmf", then the file will be created in the new MDMF mutable
1004+ file format. MDMF mutable files can be downloaded more efficiently, and
1005+ modified in-place efficiently, but are not compatible with older versions
1006+ of Tahoe-LAFS. If no "mutable-type" argument is given, the file is created
1007+ in whatever format was specified in the ``[client]mutable.format``
1008+ configuration variable of the web-API server's ``tahoe.cfg`` (see
1009+ `<../configuration.rst>`_).
1010 
1011 
1012 Creating A New Directory
1013}
1014
1015Context:
1016
1017[mutable/layout.py: fix unused import. refs #393
1018david-sarah@jacaranda.org**20110816225043
1019 Ignore-this: 7c9d6d91521ceb9a7abd14b2c60c0604
1020]
1021[mutable/retrieve.py: cosmetics and remove a stale comment. refs #393
1022david-sarah@jacaranda.org**20110816214612
1023 Ignore-this: 916e60c9dff1ef85595822e609ff34b7
1024]
1025[mutable/filenode.py: don't fetch more segments than necesasry to update the file
1026Kevan Carstensen <kevan@isnotajoke.com>**20110813210005
1027 Ignore-this: 2b0ad0533baa6f19f18851317dfc9f15
1028]
1029[test/test_mutable: test for incorrect div_ceil equations
1030Kevan Carstensen <kevan@isnotajoke.com>**20110813183936
1031 Ignore-this: 74e6061ab2ec5e706a1235611f87d5d6
1032]
1033[mutable/retrieve.py: use floor division to calculate segment boundaries, don't fetch more segments than necessary
1034Kevan Carstensen <kevan@isnotajoke.com>**20110813183833
1035 Ignore-this: 3e272249107afd3fbc1dd30c6a4f1e31
1036]
1037[mdmf: clean up boolean expressions, correct typos, remove self._paused, and don't unconditionally initialize block hash trees, asll as suggested by davidsarahs' review comments
1038Kevan Carstensen <kevan@isnotajoke.com>**20110813183710
1039 Ignore-this: cc6ad9f98b64f379151aa58b77b6c4e5
1040]
1041[now that tests pass with full-size keys, return test-keys to normal (522bit)
1042warner@lothar.com**20110811175418
1043 Ignore-this: dbce8a6699ba9a90d91cffbc8aa87900
1044]
1045[fix SHARE_HASH_CHAIN_SIZE computation
1046warner@lothar.com**20110811175350
1047 Ignore-this: 4508359d2207c8c1b7552b546697264
1048]
1049[More idiomatic resolution of the conflict between ticket393-MDMF-2 and trunk. refs #393
1050david-sarah@jacaranda.org**20110810202942
1051 Ignore-this: 7fc54a30ab0bc6ce75b7d819800c1182
1052]
1053[Replace the hard-coded 522-bit RSA key size used for tests with a TEST_RSA_KEY_SIZE constant defined in test/common.py (part 2). refs #393
1054david-sarah@jacaranda.org**20110810202310
1055 Ignore-this: 7fbd4d004279599bbcb10f7b31fb010f
1056]
1057[Replace the hard-coded 522-bit RSA key size used for tests with a TEST_RSA_KEY_SIZE constant defined in test/common.py (part 1). refs #393
1058david-sarah@jacaranda.org**20110810202243
1059 Ignore-this: c58d8130a2f383ff4421c632499b027b
1060]
1061[merge some minor conflicts in test code from the 393-2 branch and trunk
1062zooko@zooko.com**20110810172139
1063 Ignore-this: 4a16f13eeae585c7c1dbe18c67072c90
1064]
1065[doc: eliminate the phrase "rootcap" from doc/frontends/FTP-and-SFTP.rst
1066zooko@zooko.com**20110809132601
1067 Ignore-this: f7e1dd212daa65c81fb57977bce24304
1068 Two different people have asked me for help, saying they couldn't figure out what a "rootcap" is. Hopefully just calling it a "cap" will make it easier for them to find out from the other docs what it is.
1069]
1070[test_web.py: fix a test failure dependent on whether simplejson.loads returns a unicode or str object.
1071david-sarah@jacaranda.org**20110808213925
1072 Ignore-this: f7b267be8be56fcabc968e3c89999490
1073]
1074[immutable/filenode: fix pyflakes warnings
1075Kevan Carstensen <kevan@isnotajoke.com>**20110807004514
1076 Ignore-this: e8d875bf8b1c5571e31b0eff42ecf64c
1077]
1078[test: fix assorted tests broken by MDMF changes
1079Kevan Carstensen <kevan@isnotajoke.com>**20110807004459
1080 Ignore-this: 9a0dc7e5c74bfe840a9fce278619a103
1081]
1082[uri: add MDMF and MDMF directory caps, add extension hint support
1083Kevan Carstensen <kevan@isnotajoke.com>**20110807004436
1084 Ignore-this: 6486b7d4dc0e849c6b1e9cdfb6318eac
1085]
1086[test/test_mutable: tests for MDMF
1087Kevan Carstensen <kevan@isnotajoke.com>**20110807004414
1088 Ignore-this: 29f9c3a806d67df0ed09c4f0d857d347
1089 
1090 These are their own patch because they cut across a lot of the changes
1091 I've made in implementing MDMF in such a way as to make it difficult to
1092 split them up into the other patches.
1093]
1094[webapi changes for MDMF
1095Kevan Carstensen <kevan@isnotajoke.com>**20110807004348
1096 Ignore-this: d6d4dac680baa4c99b05882b3828796c
1097 
1098     - Learn how to create MDMF files and directories through the
1099       mutable-type argument.
1100     - Operate with the interface changes associated with MDMF and #993.
1101     - Learn how to do partial updates of mutable files.
1102]
1103[mutable/servermap: Rework the servermap to work with MDMF mutable files
1104Kevan Carstensen <kevan@isnotajoke.com>**20110807004259
1105 Ignore-this: 154b987fa0af716c41185b88ff7ee2e1
1106]
1107[dirnode: teach dirnode to make MDMF directories
1108Kevan Carstensen <kevan@isnotajoke.com>**20110807004224
1109 Ignore-this: 765ccd6a07ff752bf6057a3dab9e5abd
1110]
1111[Fix some test failures caused by #393 patch.
1112david-sarah@jacaranda.org**20110802032810
1113 Ignore-this: 7f65e5adb5c859af289cea7011216fef
1114]
1115[docs: amend configuration, webapi documentation to talk about MDMF
1116Kevan Carstensen <kevan@isnotajoke.com>**20110802022056
1117 Ignore-this: 4cab9b7e4ab79cc1efdabe2d457f27a6
1118]
1119[cli: teach CLI how to create MDMF mutable files
1120Kevan Carstensen <kevan@isnotajoke.com>**20110802021613
1121 Ignore-this: 18d0ff98e75be231eed3c53319e76936
1122 
1123 Specifically, 'tahoe mkdir' and 'tahoe put' now take a --mutable-type
1124 argument.
1125]
1126[frontends/sftpd: Resolve incompatibilities between SFTP frontend and MDMF changes
1127Kevan Carstensen <kevan@isnotajoke.com>**20110802021207
1128 Ignore-this: 5e0f6e961048f71d4eed6d30210ffd2e
1129]
1130[mutable/layout: Define MDMF share format, write tools for working with MDMF share format
1131Kevan Carstensen <kevan@isnotajoke.com>**20110802021120
1132 Ignore-this: fa76ef4800939e19ba3cbc22a2eab4e
1133 
1134 The changes in layout.py are mostly concerned with the MDMF share
1135 format. In particular, we define read and write proxy objects used by
1136 retrieval, publishing, and other code to write and read the MDMF share
1137 format. We create equivalent proxies for SDMF objects so that these
1138 objects can be suitably general.
1139]
1140[immutable/filenode: implement unified filenode interface
1141Kevan Carstensen <kevan@isnotajoke.com>**20110802020905
1142 Ignore-this: d9a442fc285157f134f5d1b4607c6a48
1143]
1144[immutable/literal.py: Implement interface changes in literal nodes.
1145Kevan Carstensen <kevan@isnotajoke.com>**20110802020814
1146 Ignore-this: 4371e71a50e65ce2607c4d67d3a32171
1147]
1148[test/common: Alter common test code to work with MDMF.
1149Kevan Carstensen <kevan@isnotajoke.com>**20110802015643
1150 Ignore-this: e564403182d0030439b168dd9f8726fa
1151 
1152 This mostly has to do with making the test code implement the new
1153 unified filenode interfaces.
1154]
1155[mutable: train checker and repairer to work with MDMF mutable files
1156Kevan Carstensen <kevan@isnotajoke.com>**20110802015140
1157 Ignore-this: 8b1928925bed63708b71ab0de8d4306f
1158]
1159[nodemaker: teach nodemaker about MDMF caps
1160Kevan Carstensen <kevan@isnotajoke.com>**20110802014926
1161 Ignore-this: 430c73121b6883b99626cfd652fc65c4
1162]
1163[client: teach client how to create and work with MDMF files
1164Kevan Carstensen <kevan@isnotajoke.com>**20110802014811
1165 Ignore-this: d72fbc4c2ca63f00d9ab9dc2919098ff
1166]
1167[mutable/filenode: Modify mutable filenodes for use with MDMF
1168Kevan Carstensen <kevan@isnotajoke.com>**20110802014501
1169 Ignore-this: 3c230bb0ebe60a94c667b0ee0c3b28e0
1170 
1171 In particular:
1172     - Break MutableFileNode and MutableFileVersion into distinct classes.
1173     - Implement the interface modifications made for MDMF.
1174     - Be aware of MDMF caps.
1175     - Learn how to create and work with MDMF files.
1176]
1177[nodemaker: teach nodemaker how to create MDMF mutable files
1178Kevan Carstensen <kevan@isnotajoke.com>**20110802014258
1179 Ignore-this: 2bf1fd4f8c1d1ad0e855c678347b76c2
1180]
1181[interfaces: change interfaces to work with MDMF
1182Kevan Carstensen <kevan@isnotajoke.com>**20110802014119
1183 Ignore-this: 2f441022cf888c044bc9e6dd609db139
1184 
1185 A lot of this work concerns #993, in that it unifies (to an extent) the
1186 interfaces of mutable and immutable files.
1187]
1188[mutable/publish: teach the publisher how to publish MDMF mutable files
1189Kevan Carstensen <kevan@isnotajoke.com>**20110802013931
1190 Ignore-this: 115217ec2b289452ec774cb725da8a86
1191 
1192 Like the downloader, the publisher needs some substantial changes to handle multiple segment mutable files.
1193]
1194[mutable/retrieve: rework the mutable downloader to handle multiple-segment files
1195Kevan Carstensen <kevan@isnotajoke.com>**20110802013524
1196 Ignore-this: 398d11b5cb993b50e5e4fa6e7a3856dc
1197 
1198 The downloader needs substantial reworking to handle multiple segment
1199 mutable files, which it needs to handle for MDMF.
1200]
1201[Fix repeated 'the' in license text.
1202david-sarah@jacaranda.org**20110819204836
1203 Ignore-this: b3bd4e9ec22029fe15533ad2a60003ad
1204]
1205[Remove Non-Profit Open Software License from the set of 'added permission' licenses. Although it actually does qualify as an Open Source license (because it allows relicensing under plain OSL), its wording is unclear and could easily be misunderstood, and it contributes to incompatible license proliferation.
1206david-sarah@jacaranda.org**20110819204742
1207 Ignore-this: 7373819a6b5367581356728ea62cabb1
1208]
1209[docs: change links that pointed to COPYING.TGPPL.html to point to COPYING.TGPPL.rst instead
1210zooko@zooko.com**20110819060142
1211 Ignore-this: 301652554fd7ab4bfa5aa8f8a2863a9e
1212]
1213[docs: formatting: reflow to fill-column 77
1214zooko@zooko.com**20110819060110
1215 Ignore-this: ed1317c126f07c63b944bd2fa6aa2d21
1216]
1217[docs: formatting: M-x whitespace-cleanup
1218zooko@zooko.com**20110819060041
1219 Ignore-this: 8554b16a25067094d0dc4dc71e1b3950
1220]
1221[licensing: add to the list of licenses that we grant the added permission for
1222zooko@zooko.com**20110819054656
1223 Ignore-this: eb1490416ac6b7414a27f150a8a8a047
1224 Added: most of the ones listed on the FSF's "List of Free Software, GPL Incompatible Licenses", plus the Non-Profit Open Software License.
1225]
1226[docs: reflow the added text at the top of COPYING.GPL to fill-column 77
1227zooko@zooko.com**20110819053059
1228 Ignore-this: e994ed6ffbcc12656406f11cb862ce99
1229]
1230[docs: reformat COPYING.TGPPL.html to COPYING.TGPPL.rst
1231zooko@zooko.com**20110819052753
1232 Ignore-this: 34ddf623e0a6de008ba859ca9c92b2fd
1233]
1234[docs: reflow docs/logging.rst to fill-column 77
1235zooko@zooko.com**20110819044103
1236 Ignore-this: a6901f2244995f278ddf8d75d29410bf
1237]
1238[doc: fix formatting error in docs/logging.rst
1239zooko@zooko.com**20110819043946
1240 Ignore-this: fa182dbbe7f4fda15e0a8bfcf7f00051
1241]
1242[Cleanups for suppression of UserWarnings. refs #1435
1243david-sarah@jacaranda.org**20110818040749
1244 Ignore-this: 3863ef399c1c382a1365d51f000d314c
1245]
1246[suppress warning emitted by newer zope.interface with Nevow 0.10
1247zooko@zooko.com**20110817203134
1248 Ignore-this: b86d4ce0ed1c0da76d1f9eaf8d08d9c4
1249 refs #1435
1250]
1251[doc: formatting: reflow to fill-column=77
1252zooko@zooko.com**20110809132510
1253 Ignore-this: 2d6d2e203d52925968b4451f36364792
1254]
1255[allmydata/__init__.py, test_version.py: make version parsing understand '<=', with test. refs #1435
1256david-sarah@jacaranda.org**20110815035153
1257 Ignore-this: 8c3a75f4a2b42b56bac48b5053c5e9c2
1258]
1259[_auto_deps.py: change the requirement for zope.interface to <= 3.6.2, >= 3.6.6. fixes #1435
1260david-sarah@jacaranda.org**20110815025347
1261 Ignore-this: 17a88c0f6573f044fbcd6b666667bd37
1262]
1263[Makefile and setup.py: remove setup.py commands that we no longer need, and their uses in the Makefile. Delete a stale and incorrect comment about updating _version.py. Also fix some coding style checks in the Makefile to operate on all source files.
1264david-sarah@jacaranda.org**20110801031952
1265 Ignore-this: 80a435dee3bc6e29058d4b37ff579922
1266]
1267[remove misc/debian[_helpers], rely upon official packaging instead. fixes #1454
1268warner@lothar.com**20110811182705
1269 Ignore-this: 79673cafc7c108db49b5ab908d7b4668
1270]
1271[Makefile: remove targets that used misc/debian[_helpers] which no longer exist. Also change docs/debian.rst to reflect the fact that we no longer support building .debs using those targets. refs #1454
1272david-sarah@jacaranda.org**20110801031857
1273 Ignore-this: 347cbeff45757db630ce34d0cfb84f92
1274]
1275[replace tabs with spaces in the #1441 'tahoe debug' synopsis
1276warner@lothar.com**20110811173704
1277 Ignore-this: 513fbfb18a3dd93119ea3700118df7ee
1278]
1279[Correct the information printed by '/usr/bin/tahoe debug --help' on Debian/Ubuntu. fixes #1441
1280david-sarah@jacaranda.org**20110724162530
1281 Ignore-this: 30d4b8c20e420e9a9d1b73eba1113ae
1282]
1283[doc: edit the explanation of K-of-N tradeoffs
1284zooko@zooko.com**20110804193409
1285 Ignore-this: ab6f4e35a995c2099340b5c9c5d30f40
1286]
1287[doc: clean up formatting of doc/configuration.rst
1288zooko@zooko.com**20110804192722
1289 Ignore-this: 7a98a3a8afb7e5441ff1f534211199ba
1290 reflow to 77 chars line width, M-x white-space cleanup, blank link between name and definition
1291]
1292[Add test for webopen. fixes #1149
1293david-sarah@jacaranda.org**20110724211659
1294 Ignore-this: 1e22853f7eb05e24c3141d56a513f661
1295]
1296[test_client.py: relax a check in test_create_drop_uploader so that it should pass on Python 2.4.x. refs #1429
1297david-sarah@jacaranda.org**20110810052504
1298 Ignore-this: 1380749ceaf33c30e26c50d57476616c
1299]
1300[test/common_util.py: correct fix to mkdir_nonascii. refs #1472
1301david-sarah@jacaranda.org**20110810051906
1302 Ignore-this: 93c0c33370bc47d95c26c4cce8e05290
1303]
1304[test/common_util.py: fix a typo. refs #1472
1305david-sarah@jacaranda.org**20110810044235
1306 Ignore-this: f88643d7c82cb3577686d77bbff9e2bc
1307]
1308[test_client.py, test_drop_upload.py: fix pyflakes warnings.
1309david-sarah@jacaranda.org**20110810034505
1310 Ignore-this: 1e2d71bf2f43d63cbb423d32a6f96793
1311]
1312[Factor out methods dealing with non-ASCII directories and filenames from test_drop_upload.py into common_util.py. refs #1429, #1472
1313david-sarah@jacaranda.org**20110810031558
1314 Ignore-this: 3de8f945fa7a58fc318a1184bad0fd1a
1315]
1316[test_client.py: add a test that the drop-uploader is initialized correctly by client.py. Also give the DropUploader service a name, which is necessary for the test. refs #1429
1317david-sarah@jacaranda.org**20110810030538
1318 Ignore-this: 13d511ea9bbe9da2dcffe4a91ce94eae
1319]
1320[drop-upload: rename 'start' method to 'startService', which is what you're supposed to use to start a Service. refs #1429
1321david-sarah@jacaranda.org**20110810030345
1322 Ignore-this: d1f5e5c63937ea37be37324e2f1ae99d
1323]
1324[test_drop_upload.py: add comment explaining why we don't use FilePath.setContent. refs #1429
1325david-sarah@jacaranda.org**20110810025942
1326 Ignore-this: b95358030b63cb467d1d7f1b9a9b6978
1327]
1328[test_drop_upload.py: fix some grammatical and spelling nits. refs #1429
1329david-sarah@jacaranda.org**20110809221231
1330 Ignore-this: fd331acddd9f754173f274a34fe62f03
1331]
1332[drop-upload: report the configured local directory being absent differently from it being a file
1333zooko@zooko.com**20110809220930
1334 Ignore-this: a08879100f5f20e609be3f0ffa3b25cc
1335 refs #1429
1336]
1337[drop-upload: rename the 'upload.uri' parameter to 'upload.dircap', and a couple of cleanups to error messages. refs #1429
1338zooko@zooko.com**20110809220508
1339 Ignore-this: 4846368cbe331e8653bdce1f314e276b
1340 I rerecorded this patch, originally by David-Sarah, to use "darcs replace" instead of editing to do the renames. This uncovered one missed rename in Client.init_drop_uploader. (Which also means that code isn't exercised by the current unit tests.)
1341 refs #1429
1342]
1343[drop-upload test for non-existent local dir separately from test for non-directory local dir
1344zooko@zooko.com**20110809220115
1345 Ignore-this: cd85f345c02f5cb71b1c1527bd4ebddc
1346 A candidate patch for #1429 has a bug when it is using FilePath.is_dir() to detect whether the configured local dir exists and is a directory. FilePath.is_dir() raises exception, instead of returning False, if the thing doesn't exist. This test is to make sure that DropUploader.__init__ raise different exceptions for those two cases.
1347 refs #1429
1348]
1349[drop-upload: unit tests for the configuration options being named "cap" instead of "uri"
1350zooko@zooko.com**20110809215913
1351 Ignore-this: 958c78fffb3d76b3e4817647f824e7f9
1352 This is a subset of a patch that David-Sarah attached to #1429. This is just the unit-tests part of that patch, and uses darcs record instead of hunks to change the names.
1353 refs #1429
1354]
1355[src/allmydata/storage/server.py: use the filesystem of storage/shares/, rather than storage/, to calculate remaining space. fixes #1384
1356david-sarah@jacaranda.org**20110719022752
1357 Ignore-this: a4781043cfd453dbb66ae4f108d80bea
1358]
1359[test_storage.py: test that we are using the filesystem of storage/shares/, rather than storage/, to calculate remaining space, and that the HTML status output reflects the values returned by fileutil.get_disk_stats. This version works with older versions of the mock library. refs #1384
1360david-sarah@jacaranda.org**20110809190722
1361 Ignore-this: db447caca37a459ca49563efa58db58c
1362]
1363[Work around ref #1472 by having test_drop_upload delete the non-ASCII directories it creates.
1364david-sarah@jacaranda.org**20110809012334
1365 Ignore-this: 5881fd5db419ba8ad12e0b2a82f6c4f0
1366]
1367[Remove all trailing whitespace from .py files.
1368david-sarah@jacaranda.org**20110809001117
1369 Ignore-this: d2658b5ce44af70cc606ae4d3085b7cc
1370]
1371[test_drop_upload.py: fix unused imports. refs #1429
1372david-sarah@jacaranda.org**20110808235422
1373 Ignore-this: 834f6b946bfea699d7d8c743edd66671
1374]
1375[Documentation for drop-upload frontend. refs #1429
1376david-sarah@jacaranda.org**20110808182146
1377 Ignore-this: b33110834e586c0b784d1736c2af5779
1378]
1379[Drop-upload frontend, rerecorded for 1.9 beta (and correcting a minor mistake). Includes some fixes for Windows but not the Windows inotify implementation. fixes #1429
1380david-sarah@jacaranda.org**20110808234049
1381 Ignore-this: 67f824c7f554e9a3a85f9fd2e1123d97
1382]
1383[node.py: ensure that client and introducer nodes record their port number and use that port on the next restart, fixing a regression caused by #1385. fixes #1469.
1384david-sarah@jacaranda.org**20110806221934
1385 Ignore-this: 1aa9d340b6570320ab2f9edc89c9e0a8
1386]
1387[test_runner.py: fix a race condition in the test when NODE_URL_FILE is written before PORTNUM_FILE. refs #1469
1388david-sarah@jacaranda.org**20110806231842
1389 Ignore-this: ab01ae7cec3a073e29eec473e64052a0
1390]
1391[test_runner.py: cleanups of HOTLINE_FILE writing and removal.
1392david-sarah@jacaranda.org**20110806231652
1393 Ignore-this: 25f5c5d6f5d8faebb26a4ce80110a335
1394]
1395[test_runner.py: remove an unused constant.
1396david-sarah@jacaranda.org**20110806221416
1397 Ignore-this: eade2695cbabbea9cafeaa8debe410bb
1398]
1399[node.py: fix the error path for a missing config option so that it works for a Unicode base directory.
1400david-sarah@jacaranda.org**20110806221007
1401 Ignore-this: 4eb9cc04b2ce05182a274a0d69dafaf3
1402]
1403[test_runner.py: test that client and introducer nodes record their port number and use that port on the next restart. This tests for a regression caused by ref #1385.
1404david-sarah@jacaranda.org**20110806220635
1405 Ignore-this: 40a0c040b142dbddd47e69b3c3712f5
1406]
1407[test_runner.py: fix a bug in CreateNode.do_create introduced in changeset [5114] when the tahoe.cfg file has been written with CRLF line endings. refs #1385
1408david-sarah@jacaranda.org**20110804003032
1409 Ignore-this: 7b7afdcf99da6671afac2d42828883eb
1410]
1411[test_client.py: repair Basic.test_error_on_old_config_files. refs #1385
1412david-sarah@jacaranda.org**20110803235036
1413 Ignore-this: 31e2a9c3febe55948de7e144353663e
1414]
1415[test_checker.py: increase timeout for TooParallel.test_immutable again. The ARM buildslave took 38 seconds, so 40 seconds is too close to the edge; make it 80.
1416david-sarah@jacaranda.org**20110803214042
1417 Ignore-this: 2d8026a6b25534e01738f78d6c7495cb
1418]
1419[test_runner.py: fix RunNode.test_introducer to not rely on the mtime of introducer.furl to detect when the node has restarted. Instead we detect when node.url has been written. refs #1385
1420david-sarah@jacaranda.org**20110803180917
1421 Ignore-this: 11ddc43b107beca42cb78af88c5c394c
1422]
1423[Further improve error message about old config files. refs #1385
1424david-sarah@jacaranda.org**20110803174546
1425 Ignore-this: 9d6cc3c288d9863dce58faafb3855917
1426]
1427[Slightly improve error message about old config files (avoid unnecessary Unicode escaping). refs #1385
1428david-sarah@jacaranda.org**20110803163848
1429 Ignore-this: a3e3930fba7ccf90b8db3d2ed5829df4
1430]
1431[test_checker.py: increase timeout for TooParallel.test_immutable (was consistently failing on ARM buildslave).
1432david-sarah@jacaranda.org**20110803163213
1433 Ignore-this: d0efceaf12628e8791862b80c85b5d56
1434]
1435[Fix the bug that prevents an introducer from starting when introducer.furl already exists. Also remove some dead code that used to read old config files, and rename 'warn_about_old_config_files' to reflect that it's not a warning. refs #1385
1436david-sarah@jacaranda.org**20110803013212
1437 Ignore-this: 2d6cd14bd06a7493b26f2027aff78f4d
1438]
1439[test_runner.py: modify RunNode.test_introducer to test that starting an introducer works when the introducer.furl file already exists. refs #1385
1440david-sarah@jacaranda.org**20110803012704
1441 Ignore-this: 8cf7f27ac4bfbb5ad8ca4a974106d437
1442]
1443[verifier: correct a bug introduced in changeset [5106] that caused us to only verify the first block of a file. refs #1395
1444david-sarah@jacaranda.org**20110802172437
1445 Ignore-this: 87fb77854a839ff217dce73544775b11
1446]
1447[test_repairer: add a deterministic test of share data corruption that always flips the bits of the last byte of the share data. refs #1395
1448david-sarah@jacaranda.org**20110802175841
1449 Ignore-this: 72f54603785007e88220c8d979e08be7
1450]
1451[verifier: serialize the fetching of blocks within a share so that we don't use too much RAM
1452zooko@zooko.com**20110802063703
1453 Ignore-this: debd9bac07dcbb6803f835a9e2eabaa1
1454 
1455 Shares are still verified in parallel, but within a share, don't request a
1456 block until the previous block has been verified and the memory we used to hold
1457 it has been freed up.
1458 
1459 Patch originally due to Brian. This version has a mockery-patchery-style test
1460 which is "low tech" (it implements the patching inline in the test code instead
1461 of using an extension of the mock.patch() function from the mock library) and
1462 which unpatches in case of exception.
1463 
1464 fixes #1395
1465]
1466[add docs about timing-channel attacks
1467Brian Warner <warner@lothar.com>**20110802044541
1468 Ignore-this: 73114d5f5ed9ce252597b707dba3a194
1469]
1470['test-coverage' now needs PYTHONPATH=. to find TOP/twisted/plugins/
1471Brian Warner <warner@lothar.com>**20110802041952
1472 Ignore-this: d40f1f4cb426ea1c362fc961baedde2
1473]
1474[remove nodeid from WriteBucketProxy classes and customers
1475warner@lothar.com**20110801224317
1476 Ignore-this: e55334bb0095de11711eeb3af827e8e8
1477 refs #1363
1478]
1479[remove get_serverid() from ReadBucketProxy and customers, including Checker
1480warner@lothar.com**20110801224307
1481 Ignore-this: 837aba457bc853e4fd413ab1a94519cb
1482 and debug.py dump-share commands
1483 refs #1363
1484]
1485[reject old-style (pre-Tahoe-LAFS-v1.3) configuration files
1486zooko@zooko.com**20110801232423
1487 Ignore-this: b58218fcc064cc75ad8f05ed0c38902b
1488 Check for the existence of any of them and if any are found raise exception which will abort the startup of the node.
1489 This is a backwards-incompatible change for anyone who is still using old-style configuration files.
1490 fixes #1385
1491]
1492[whitespace-cleanup
1493zooko@zooko.com**20110725015546
1494 Ignore-this: 442970d0545183b97adc7bd66657876c
1495]
1496[tests: use fileutil.write() instead of open() to ensure timely close even without CPython-style reference counting
1497zooko@zooko.com**20110331145427
1498 Ignore-this: 75aae4ab8e5fa0ad698f998aaa1888ce
1499 Some of these already had an explicit close() but I went ahead and replaced them with fileutil.write() as well for the sake of uniformity.
1500]
1501[Address Kevan's comment in #776 about Options classes missed when adding 'self.command_name'. refs #776, #1359
1502david-sarah@jacaranda.org**20110801221317
1503 Ignore-this: 8881d42cf7e6a1d15468291b0cb8fab9
1504]
1505[docs/frontends/webapi.rst: change some more instances of 'delete' or 'remove' to 'unlink', change some section titles, and use two blank lines between all sections. refs #776, #1104
1506david-sarah@jacaranda.org**20110801220919
1507 Ignore-this: 572327591137bb05c24c44812d4b163f
1508]
1509[cleanup: implement rm as a synonym for unlink rather than vice-versa. refs #776
1510david-sarah@jacaranda.org**20110801220108
1511 Ignore-this: 598dcbed870f4f6bb9df62de9111b343
1512]
1513[docs/webapi.rst: address Kevan's comments about use of 'delete' on ref #1104
1514david-sarah@jacaranda.org**20110801205356
1515 Ignore-this: 4fbf03864934753c951ddeff64392491
1516]
1517[docs: some changes of 'delete' or 'rm' to 'unlink'. refs #1104
1518david-sarah@jacaranda.org**20110713002722
1519 Ignore-this: 304d2a330d5e6e77d5f1feed7814b21c
1520]
1521[WUI: change the label of the button to unlink a file from 'del' to 'unlink'. Also change some internal names to 'unlink', and allow 't=unlink' as a synonym for 't=delete' in the web-API interface. Incidentally, improve a test to check for the rename button as well as the unlink button. fixes #1104
1522david-sarah@jacaranda.org**20110713001218
1523 Ignore-this: 3eef6b3f81b94a9c0020a38eb20aa069
1524]
1525[src/allmydata/web/filenode.py: delete a stale comment that was made incorrect by changeset [3133].
1526david-sarah@jacaranda.org**20110801203009
1527 Ignore-this: b3912e95a874647027efdc97822dd10e
1528]
1529[fix typo introduced during rebasing of 'remove get_serverid from
1530Brian Warner <warner@lothar.com>**20110801200341
1531 Ignore-this: 4235b0f585c0533892193941dbbd89a8
1532 DownloadStatus.add_dyhb_request and customers' patch, to fix test failure.
1533]
1534[remove get_serverid from DownloadStatus.add_dyhb_request and customers
1535zooko@zooko.com**20110801185401
1536 Ignore-this: db188c18566d2d0ab39a80c9dc8f6be6
1537 This patch is a rebase of a patch originally written by Brian. I didn't change any of the intent of Brian's patch, just ported it to current trunk.
1538 refs #1363
1539]
1540[remove get_serverid from DownloadStatus.add_block_request and customers
1541zooko@zooko.com**20110801185344
1542 Ignore-this: 8bfa8201d6147f69b0fbe31beea9c1e
1543 This is a rebase of a patch Brian originally wrote. I haven't changed the intent of that patch, just ported it to trunk.
1544 refs #1363
1545]
1546[apply zooko's advice: storage_client get_known_servers() returns a frozenset, caller sorts
1547warner@lothar.com**20110801174452
1548 Ignore-this: 2aa13ea6cbed4e9084bd604bf8633692
1549 refs #1363
1550]
1551[test_immutable.Test: rewrite to use NoNetworkGrid, now takes 2.7s not 97s
1552warner@lothar.com**20110801174444
1553 Ignore-this: 54f30b5d7461d2b3514e2a0172f3a98c
1554 remove now-unused ShareManglingMixin
1555 refs #1363
1556]
1557[DownloadStatus.add_known_share wants to be used by Finder, web.status
1558warner@lothar.com**20110801174436
1559 Ignore-this: 1433bcd73099a579abe449f697f35f9
1560 refs #1363
1561]
1562[replace IServer.name() with get_name(), and get_longname()
1563warner@lothar.com**20110801174428
1564 Ignore-this: e5a6f7f6687fd7732ddf41cfdd7c491b
1565 
1566 This patch was originally written by Brian, but was re-recorded by Zooko to use
1567 darcs replace instead of hunks for any file in which it would result in fewer
1568 total hunks.
1569 refs #1363
1570]
1571[upload.py: apply David-Sarah's advice rename (un)contacted(2) trackers to first_pass/second_pass/next_pass
1572zooko@zooko.com**20110801174143
1573 Ignore-this: e36e1420bba0620a0107bd90032a5198
1574 This patch was written by Brian but was re-recorded by Zooko (with David-Sarah looking on) to use darcs replace instead of editing to rename the three variables to their new names.
1575 refs #1363
1576]
1577[Coalesce multiple Share.loop() calls, make downloads faster. Closes #1268.
1578Brian Warner <warner@lothar.com>**20110801151834
1579 Ignore-this: 48530fce36c01c0ff708f61c2de7e67a
1580]
1581[src/allmydata/_auto_deps.py: 'i686' is another way of spelling x86.
1582david-sarah@jacaranda.org**20110801034035
1583 Ignore-this: 6971e0621db2fba794d86395b4d51038
1584]
1585[tahoe_rm.py: better error message when there is no path. refs #1292
1586david-sarah@jacaranda.org**20110122064212
1587 Ignore-this: ff3bb2c9f376250e5fd77eb009e09018
1588]
1589[test_cli.py: Test for error message when 'tahoe rm' is invoked without a path. refs #1292
1590david-sarah@jacaranda.org**20110104105108
1591 Ignore-this: 29ec2f2e0251e446db96db002ad5dd7d
1592]
1593[src/allmydata/__init__.py: suppress a spurious warning from 'bin/tahoe --version[-and-path]' about twisted-web and twisted-core packages.
1594david-sarah@jacaranda.org**20110801005209
1595 Ignore-this: 50e7cd53cca57b1870d9df0361c7c709
1596]
1597[test_cli.py: use to_str on fields loaded using simplejson.loads in new tests. refs #1304
1598david-sarah@jacaranda.org**20110730032521
1599 Ignore-this: d1d6dfaefd1b4e733181bf127c79c00b
1600]
1601[cli: make 'tahoe cp' overwrite mutable files in-place
1602Kevan Carstensen <kevan@isnotajoke.com>**20110729202039
1603 Ignore-this: b2ad21a19439722f05c49bfd35b01855
1604]
1605[SFTP: write an error message to standard error for unrecognized shell commands. Change the existing message for shell sessions to be written to standard error, and refactor some duplicated code. Also change the lines of the error messages to end in CRLF, and take into account Kevan's review comments. fixes #1442, #1446
1606david-sarah@jacaranda.org**20110729233102
1607 Ignore-this: d2f2bb4664f25007d1602bf7333e2cdd
1608]
1609[src/allmydata/scripts/cli.py: fix pyflakes warning.
1610david-sarah@jacaranda.org**20110728021402
1611 Ignore-this: 94050140ddb99865295973f49927c509
1612]
1613[Fix the help synopses of CLI commands to include [options] in the right place. fixes #1359, fixes #636
1614david-sarah@jacaranda.org**20110724225440
1615 Ignore-this: 2a8e488a5f63dabfa9db9efd83768a5
1616]
1617[encodingutil: argv and output encodings are always the same on all platforms. Lose the unnecessary generality of them being different. fixes #1120
1618david-sarah@jacaranda.org**20110629185356
1619 Ignore-this: 5ebacbe6903dfa83ffd3ff8436a97787
1620]
1621[docs/man/tahoe.1: add man page. fixes #1420
1622david-sarah@jacaranda.org**20110724171728
1623 Ignore-this: fc7601ec7f25494288d6141d0ae0004c
1624]
1625[Update the dependency on zope.interface to fix an incompatiblity between Nevow and zope.interface 3.6.4. fixes #1435
1626david-sarah@jacaranda.org**20110721234941
1627 Ignore-this: 2ff3fcfc030fca1a4d4c7f1fed0f2aa9
1628]
1629[frontends/ftpd.py: remove the check for IWriteFile.close since we're now guaranteed to be using Twisted >= 10.1 which has it.
1630david-sarah@jacaranda.org**20110722000320
1631 Ignore-this: 55cd558b791526113db3f83c00ec328a
1632]
1633[Update the dependency on Twisted to >= 10.1. This allows us to simplify some documentation: it's no longer necessary to install pywin32 on Windows, or apply a patch to Twisted in order to use the FTP frontend. fixes #1274, #1438. refs #1429
1634david-sarah@jacaranda.org**20110721233658
1635 Ignore-this: 81b41745477163c9b39c0b59db91cc62
1636]
1637[misc/build_helpers/run_trial.py: undo change to block pywin32 (it didn't work because run_trial.py is no longer used). refs #1334
1638david-sarah@jacaranda.org**20110722035402
1639 Ignore-this: 5d03f544c4154f088e26c7107494bf39
1640]
1641[misc/build_helpers/run_trial.py: ensure that pywin32 is not on the sys.path when running the test suite. Includes some temporary debugging printouts that will be removed. refs #1334
1642david-sarah@jacaranda.org**20110722024907
1643 Ignore-this: 5141a9f83a4085ed4ca21f0bbb20bb9c
1644]
1645[docs/running.rst: use 'tahoe run ~/.tahoe' instead of 'tahoe run' (the default is the current directory, unlike 'tahoe start').
1646david-sarah@jacaranda.org**20110718005949
1647 Ignore-this: 81837fbce073e93d88a3e7ae3122458c
1648]
1649[docs/running.rst: say to put the introducer.furl in tahoe.cfg.
1650david-sarah@jacaranda.org**20110717194315
1651 Ignore-this: 954cc4c08e413e8c62685d58ff3e11f3
1652]
1653[README.txt: say that quickstart.rst is in the docs directory.
1654david-sarah@jacaranda.org**20110717192400
1655 Ignore-this: bc6d35a85c496b77dbef7570677ea42a
1656]
1657[setup: remove the dependency on foolscap's "secure_connections" extra, add a dependency on pyOpenSSL
1658zooko@zooko.com**20110717114226
1659 Ignore-this: df222120d41447ce4102616921626c82
1660 fixes #1383
1661]
1662[test_sftp.py cleanup: remove a redundant definition of failUnlessReallyEqual.
1663david-sarah@jacaranda.org**20110716181813
1664 Ignore-this: 50113380b368c573f07ac6fe2eb1e97f
1665]
1666[docs: add missing link in NEWS.rst
1667zooko@zooko.com**20110712153307
1668 Ignore-this: be7b7eb81c03700b739daa1027d72b35
1669]
1670[contrib: remove the contributed fuse modules and the entire contrib/ directory, which is now empty
1671zooko@zooko.com**20110712153229
1672 Ignore-this: 723c4f9e2211027c79d711715d972c5
1673 Also remove a couple of vestigial references to figleaf, which is long gone.
1674 fixes #1409 (remove contrib/fuse)
1675]
1676[add Protovis.js-based download-status timeline visualization
1677Brian Warner <warner@lothar.com>**20110629222606
1678 Ignore-this: 477ccef5c51b30e246f5b6e04ab4a127
1679 
1680 provide status overlap info on the webapi t=json output, add decode/decrypt
1681 rate tooltips, add zoomin/zoomout buttons
1682]
1683[add more download-status data, fix tests
1684Brian Warner <warner@lothar.com>**20110629222555
1685 Ignore-this: e9e0b7e0163f1e95858aa646b9b17b8c
1686]
1687[prepare for viz: improve DownloadStatus events
1688Brian Warner <warner@lothar.com>**20110629222542
1689 Ignore-this: 16d0bde6b734bb501aa6f1174b2b57be
1690 
1691 consolidate IDownloadStatusHandlingConsumer stuff into DownloadNode
1692]
1693[docs: fix error in crypto specification that was noticed by Taylor R Campbell <campbell+tahoe@mumble.net>
1694zooko@zooko.com**20110629185711
1695 Ignore-this: b921ed60c1c8ba3c390737fbcbe47a67
1696]
1697[setup.py: don't make bin/tahoe.pyscript executable. fixes #1347
1698david-sarah@jacaranda.org**20110130235809
1699 Ignore-this: 3454c8b5d9c2c77ace03de3ef2d9398a
1700]
1701[Makefile: remove targets relating to 'setup.py check_auto_deps' which no longer exists. fixes #1345
1702david-sarah@jacaranda.org**20110626054124
1703 Ignore-this: abb864427a1b91bd10d5132b4589fd90
1704]
1705[Makefile: add 'make check' as an alias for 'make test'. Also remove an unnecessary dependency of 'test' on 'build' and 'src/allmydata/_version.py'. fixes #1344
1706david-sarah@jacaranda.org**20110623205528
1707 Ignore-this: c63e23146c39195de52fb17c7c49b2da
1708]
1709[Rename test_package_initialization.py to (much shorter) test_import.py .
1710Brian Warner <warner@lothar.com>**20110611190234
1711 Ignore-this: 3eb3dbac73600eeff5cfa6b65d65822
1712 
1713 The former name was making my 'ls' listings hard to read, by forcing them
1714 down to just two columns.
1715]
1716[tests: fix tests to accomodate [20110611153758-92b7f-0ba5e4726fb6318dac28fb762a6512a003f4c430]
1717zooko@zooko.com**20110611163741
1718 Ignore-this: 64073a5f39e7937e8e5e1314c1a302d1
1719 Apparently none of the two authors (stercor, terrell), three reviewers (warner, davidsarah, terrell), or one committer (me) actually ran the tests. This is presumably due to #20.
1720 fixes #1412
1721]
1722[wui: right-align the size column in the WUI
1723zooko@zooko.com**20110611153758
1724 Ignore-this: 492bdaf4373c96f59f90581c7daf7cd7
1725 Thanks to Ted "stercor" Rolle Jr. and Terrell Russell.
1726 fixes #1412
1727]
1728[docs: three minor fixes
1729zooko@zooko.com**20110610121656
1730 Ignore-this: fec96579eb95aceb2ad5fc01a814c8a2
1731 CREDITS for arc for stats tweak
1732 fix link to .zip file in quickstart.rst (thanks to ChosenOne for noticing)
1733 English usage tweak
1734]
1735[docs/running.rst: fix stray HTML (not .rst) link noticed by ChosenOne.
1736david-sarah@jacaranda.org**20110609223719
1737 Ignore-this: fc50ac9c94792dcac6f1067df8ac0d4a
1738]
1739[server.py:  get_latencies now reports percentiles _only_ if there are sufficient observations for the interpretation of the percentile to be unambiguous.
1740wilcoxjg@gmail.com**20110527120135
1741 Ignore-this: 2e7029764bffc60e26f471d7c2b6611e
1742 interfaces.py:  modified the return type of RIStatsProvider.get_stats to allow for None as a return value
1743 NEWS.rst, stats.py: documentation of change to get_latencies
1744 stats.rst: now documents percentile modification in get_latencies
1745 test_storage.py:  test_latencies now expects None in output categories that contain too few samples for the associated percentile to be unambiguously reported.
1746 fixes #1392
1747]
1748[docs: revert link in relnotes.txt from NEWS.rst to NEWS, since the former did not exist at revision 5000.
1749david-sarah@jacaranda.org**20110517011214
1750 Ignore-this: 6a5be6e70241e3ec0575641f64343df7
1751]
1752[docs: convert NEWS to NEWS.rst and change all references to it.
1753david-sarah@jacaranda.org**20110517010255
1754 Ignore-this: a820b93ea10577c77e9c8206dbfe770d
1755]
1756[docs: remove out-of-date docs/testgrid/introducer.furl and containing directory. fixes #1404
1757david-sarah@jacaranda.org**20110512140559
1758 Ignore-this: 784548fc5367fac5450df1c46890876d
1759]
1760[scripts/common.py: don't assume that the default alias is always 'tahoe' (it is, but the API of get_alias doesn't say so). refs #1342
1761david-sarah@jacaranda.org**20110130164923
1762 Ignore-this: a271e77ce81d84bb4c43645b891d92eb
1763]
1764[setup: don't catch all Exception from check_requirement(), but only PackagingError and ImportError
1765zooko@zooko.com**20110128142006
1766 Ignore-this: 57d4bc9298b711e4bc9dc832c75295de
1767 I noticed this because I had accidentally inserted a bug which caused AssertionError to be raised from check_requirement().
1768]
1769[M-x whitespace-cleanup
1770zooko@zooko.com**20110510193653
1771 Ignore-this: dea02f831298c0f65ad096960e7df5c7
1772]
1773[docs: fix typo in running.rst, thanks to arch_o_median
1774zooko@zooko.com**20110510193633
1775 Ignore-this: ca06de166a46abbc61140513918e79e8
1776]
1777[relnotes.txt: don't claim to work on Cygwin (which has been untested for some time). refs #1342
1778david-sarah@jacaranda.org**20110204204902
1779 Ignore-this: 85ef118a48453d93fa4cddc32d65b25b
1780]
1781[relnotes.txt: forseeable -> foreseeable. refs #1342
1782david-sarah@jacaranda.org**20110204204116
1783 Ignore-this: 746debc4d82f4031ebf75ab4031b3a9
1784]
1785[replace remaining .html docs with .rst docs
1786zooko@zooko.com**20110510191650
1787 Ignore-this: d557d960a986d4ac8216d1677d236399
1788 Remove install.html (long since deprecated).
1789 Also replace some obsolete references to install.html with references to quickstart.rst.
1790 Fix some broken internal references within docs/historical/historical_known_issues.txt.
1791 Thanks to Ravi Pinjala and Patrick McDonald.
1792 refs #1227
1793]
1794[docs: FTP-and-SFTP.rst: fix a minor error and update the information about which version of Twisted fixes #1297
1795zooko@zooko.com**20110428055232
1796 Ignore-this: b63cfb4ebdbe32fb3b5f885255db4d39
1797]
1798[munin tahoe_files plugin: fix incorrect file count
1799francois@ctrlaltdel.ch**20110428055312
1800 Ignore-this: 334ba49a0bbd93b4a7b06a25697aba34
1801 fixes #1391
1802]
1803[corrected "k must never be smaller than N" to "k must never be greater than N"
1804secorp@allmydata.org**20110425010308
1805 Ignore-this: 233129505d6c70860087f22541805eac
1806]
1807[Fix a test failure in test_package_initialization on Python 2.4.x due to exceptions being stringified differently than in later versions of Python. refs #1389
1808david-sarah@jacaranda.org**20110411190738
1809 Ignore-this: 7847d26bc117c328c679f08a7baee519
1810]
1811[tests: add test for including the ImportError message and traceback entry in the summary of errors from importing dependencies. refs #1389
1812david-sarah@jacaranda.org**20110410155844
1813 Ignore-this: fbecdbeb0d06a0f875fe8d4030aabafa
1814]
1815[allmydata/__init__.py: preserve the message and last traceback entry (file, line number, function, and source line) of ImportErrors in the package versions string. fixes #1389
1816david-sarah@jacaranda.org**20110410155705
1817 Ignore-this: 2f87b8b327906cf8bfca9440a0904900
1818]
1819[remove unused variable detected by pyflakes
1820zooko@zooko.com**20110407172231
1821 Ignore-this: 7344652d5e0720af822070d91f03daf9
1822]
1823[allmydata/__init__.py: Nicer reporting of unparseable version numbers in dependencies. fixes #1388
1824david-sarah@jacaranda.org**20110401202750
1825 Ignore-this: 9c6bd599259d2405e1caadbb3e0d8c7f
1826]
1827[update FTP-and-SFTP.rst: the necessary patch is included in Twisted-10.1
1828Brian Warner <warner@lothar.com>**20110325232511
1829 Ignore-this: d5307faa6900f143193bfbe14e0f01a
1830]
1831[control.py: remove all uses of s.get_serverid()
1832warner@lothar.com**20110227011203
1833 Ignore-this: f80a787953bd7fa3d40e828bde00e855
1834]
1835[web: remove some uses of s.get_serverid(), not all
1836warner@lothar.com**20110227011159
1837 Ignore-this: a9347d9cf6436537a47edc6efde9f8be
1838]
1839[immutable/downloader/fetcher.py: remove all get_serverid() calls
1840warner@lothar.com**20110227011156
1841 Ignore-this: fb5ef018ade1749348b546ec24f7f09a
1842]
1843[immutable/downloader/fetcher.py: fix diversity bug in server-response handling
1844warner@lothar.com**20110227011153
1845 Ignore-this: bcd62232c9159371ae8a16ff63d22c1b
1846 
1847 When blocks terminate (either COMPLETE or CORRUPT/DEAD/BADSEGNUM), the
1848 _shares_from_server dict was being popped incorrectly (using shnum as the
1849 index instead of serverid). I'm still thinking through the consequences of
1850 this bug. It was probably benign and really hard to detect. I think it would
1851 cause us to incorrectly believe that we're pulling too many shares from a
1852 server, and thus prefer a different server rather than asking for a second
1853 share from the first server. The diversity code is intended to spread out the
1854 number of shares simultaneously being requested from each server, but with
1855 this bug, it might be spreading out the total number of shares requested at
1856 all, not just simultaneously. (note that SegmentFetcher is scoped to a single
1857 segment, so the effect doesn't last very long).
1858]
1859[immutable/downloader/share.py: reduce get_serverid(), one left, update ext deps
1860warner@lothar.com**20110227011150
1861 Ignore-this: d8d56dd8e7b280792b40105e13664554
1862 
1863 test_download.py: create+check MyShare instances better, make sure they share
1864 Server objects, now that finder.py cares
1865]
1866[immutable/downloader/finder.py: reduce use of get_serverid(), one left
1867warner@lothar.com**20110227011146
1868 Ignore-this: 5785be173b491ae8a78faf5142892020
1869]
1870[immutable/offloaded.py: reduce use of get_serverid() a bit more
1871warner@lothar.com**20110227011142
1872 Ignore-this: b48acc1b2ae1b311da7f3ba4ffba38f
1873]
1874[immutable/upload.py: reduce use of get_serverid()
1875warner@lothar.com**20110227011138
1876 Ignore-this: ffdd7ff32bca890782119a6e9f1495f6
1877]
1878[immutable/checker.py: remove some uses of s.get_serverid(), not all
1879warner@lothar.com**20110227011134
1880 Ignore-this: e480a37efa9e94e8016d826c492f626e
1881]
1882[add remaining get_* methods to storage_client.Server, NoNetworkServer, and
1883warner@lothar.com**20110227011132
1884 Ignore-this: 6078279ddf42b179996a4b53bee8c421
1885 MockIServer stubs
1886]
1887[upload.py: rearrange _make_trackers a bit, no behavior changes
1888warner@lothar.com**20110227011128
1889 Ignore-this: 296d4819e2af452b107177aef6ebb40f
1890]
1891[happinessutil.py: finally rename merge_peers to merge_servers
1892warner@lothar.com**20110227011124
1893 Ignore-this: c8cd381fea1dd888899cb71e4f86de6e
1894]
1895[test_upload.py: factor out FakeServerTracker
1896warner@lothar.com**20110227011120
1897 Ignore-this: 6c182cba90e908221099472cc159325b
1898]
1899[test_upload.py: server-vs-tracker cleanup
1900warner@lothar.com**20110227011115
1901 Ignore-this: 2915133be1a3ba456e8603885437e03
1902]
1903[happinessutil.py: server-vs-tracker cleanup
1904warner@lothar.com**20110227011111
1905 Ignore-this: b856c84033562d7d718cae7cb01085a9
1906]
1907[upload.py: more tracker-vs-server cleanup
1908warner@lothar.com**20110227011107
1909 Ignore-this: bb75ed2afef55e47c085b35def2de315
1910]
1911[upload.py: fix var names to avoid confusion between 'trackers' and 'servers'
1912warner@lothar.com**20110227011103
1913 Ignore-this: 5d5e3415b7d2732d92f42413c25d205d
1914]
1915[refactor: s/peer/server/ in immutable/upload, happinessutil.py, test_upload
1916warner@lothar.com**20110227011100
1917 Ignore-this: 7ea858755cbe5896ac212a925840fe68
1918 
1919 No behavioral changes, just updating variable/method names and log messages.
1920 The effects outside these three files should be minimal: some exception
1921 messages changed (to say "server" instead of "peer"), and some internal class
1922 names were changed. A few things still use "peer" to minimize external
1923 changes, like UploadResults.timings["peer_selection"] and
1924 happinessutil.merge_peers, which can be changed later.
1925]
1926[storage_client.py: clean up test_add_server/test_add_descriptor, remove .test_servers
1927warner@lothar.com**20110227011056
1928 Ignore-this: efad933e78179d3d5fdcd6d1ef2b19cc
1929]
1930[test_client.py, upload.py:: remove KiB/MiB/etc constants, and other dead code
1931warner@lothar.com**20110227011051
1932 Ignore-this: dc83c5794c2afc4f81e592f689c0dc2d
1933]
1934[test: increase timeout on a network test because Francois's ARM machine hit that timeout
1935zooko@zooko.com**20110317165909
1936 Ignore-this: 380c345cdcbd196268ca5b65664ac85b
1937 I'm skeptical that the test was proceeding correctly but ran out of time. It seems more likely that it had gotten hung. But if we raise the timeout to an even more extravagant number then we can be even more certain that the test was never going to finish.
1938]
1939[docs/configuration.rst: add a "Frontend Configuration" section
1940Brian Warner <warner@lothar.com>**20110222014323
1941 Ignore-this: 657018aa501fe4f0efef9851628444ca
1942 
1943 this points to docs/frontends/*.rst, which were previously underlinked
1944]
1945[web/filenode.py: avoid calling req.finish() on closed HTTP connections. Closes #1366
1946"Brian Warner <warner@lothar.com>"**20110221061544
1947 Ignore-this: 799d4de19933f2309b3c0c19a63bb888
1948]
1949[Add unit tests for cross_check_pkg_resources_versus_import, and a regression test for ref #1355. This requires a little refactoring to make it testable.
1950david-sarah@jacaranda.org**20110221015817
1951 Ignore-this: 51d181698f8c20d3aca58b057e9c475a
1952]
1953[allmydata/__init__.py: .name was used in place of the correct .__name__ when printing an exception. Also, robustify string formatting by using %r instead of %s in some places. fixes #1355.
1954david-sarah@jacaranda.org**20110221020125
1955 Ignore-this: b0744ed58f161bf188e037bad077fc48
1956]
1957[Refactor StorageFarmBroker handling of servers
1958Brian Warner <warner@lothar.com>**20110221015804
1959 Ignore-this: 842144ed92f5717699b8f580eab32a51
1960 
1961 Pass around IServer instance instead of (peerid, rref) tuple. Replace
1962 "descriptor" with "server". Other replacements:
1963 
1964  get_all_servers -> get_connected_servers/get_known_servers
1965  get_servers_for_index -> get_servers_for_psi (now returns IServers)
1966 
1967 This change still needs to be pushed further down: lots of code is now
1968 getting the IServer and then distributing (peerid, rref) internally.
1969 Instead, it ought to distribute the IServer internally and delay
1970 extracting a serverid or rref until the last moment.
1971 
1972 no_network.py was updated to retain parallelism.
1973]
1974[TAG allmydata-tahoe-1.8.2
1975warner@lothar.com**20110131020101]
1976Patch bundle hash:
1977930f9bfa144b1f9500c98bb9695c47bee56c3edb