]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - NEWS
CLI: add 'tahoe unlink' as an alias to 'tahoe rm', for forward-compatibility.
[tahoe-lafs/tahoe-lafs.git] / NEWS
1 User visible changes in Tahoe-LAFS.  -*- outline; coding: utf-8 -*-
2
3 * Release 1.7.1 (2010-07-17)
4
5 ** Bugfixes and Improvements
6
7  - Fix rarely-encountered incompatibility between Twisted logging utility and
8    the new unicode support added in v1.7.0 (#1099)
9  - Fix minor layout issue in the Web User Interface with Internet Explorer
10    (#1097)
11  - Fix bug where server version number was always 0 on the welcome page (#1067)
12  - Add new command-line command "tahoe unlink" as a synonym for "tahoe rm"
13    (#1072)
14
15 * Release 1.7.0 (2010-06-18)
16
17 ** New Features
18
19 *** SFTP support
20
21 Your Tahoe-LAFS gateway now acts like a full-fledged SFTP server.  It has been
22 tested with sshfs to provide a virtual filesystem in Linux.  Many users have
23 asked for this feature.  We hope that it serves them well! See the
24 docs/frontends/FTP-and-SFTP.txt document to get started.
25
26 *** support for non-ASCII character encodings
27
28 Tahoe-LAFS now correctly handles filenames containing non-ASCII characters on
29 all supported platforms:
30
31  - when reading files in from the local filesystem (such as when you run "tahoe
32    backup" to back up your local files to a Tahoe-LAFS grid);
33
34  - when writing files out to the local filesystem (such as when you run "tahoe
35    cp -r" to recursively copy files out of a Tahoe-LAFS grid);
36
37  - when displaying filenames to the terminal (such as when you run "tahoe ls"),
38    subject to limitations of the terminal and locale;
39
40  - when parsing command-line arguments, except on Windows.
41
42 *** Servers of Happiness
43
44 Tahoe-LAFS now measures during immutable file upload to see how well
45 distributed it is across multiple servers. It aborts the upload if the pieces
46 of the file are not sufficiently well-distributed.
47
48 This behavior is controlled by a configuration parameter called "servers of
49 happiness". With the default settings for its erasure coding, Tahoe-LAFS
50 generates 10 shares for each file, such that any 3 of those shares are
51 sufficient to recover the file. The default value of "servers of happiness" is
52 7, which means that Tahoe-LAFS will guarantee that there are at least 7 servers
53 holding some of the shares, such that any 3 of those servers can completely
54 recover your file.
55
56 The new upload code also distributes the shares better than the previous
57 version in some cases and takes better advantage of pre-existing shares (when a
58 file has already been previously uploaded). See the architecture.txt document
59 [3] for details.
60
61 ** Bugfixes and Improvements
62
63  - Premature abort of upload if some shares were already present and some
64    servers fail. (#608)
65  - python ./setup.py install -- can't create or remove files in install
66    directory. (#803)
67  - Network failure => internal TypeError. (#902)
68  - Install of Tahoe on CentOS 5.4. (#933)
69  - CLI option --node-url now supports https url. (#1028)
70  - HTML/CSS template files were not correctly installed under Windows. (#1033)
71  - MetadataSetter does not enforce restriction on setting "tahoe" subkeys.
72    (#1034)
73  - ImportError: No module named setuptools_darcs.setuptools_darcs. (#1054)
74  - Renamed Title in xhtml files. (#1062)
75  - Increase Python version dependency to 2.4.4, to avoid a critical CPython
76    security bug. (#1066)
77  - Typo correction for the munin plugin tahoe_storagespace. (#968)
78  - Fix warnings found by pylint. (#973)
79  - Changing format of some documentation files. (#1027)
80  - the misc/ directory was tied up. (#1068)
81  - The 'ctime' and 'mtime' metadata fields are no longer written except by
82    "tahoe backup". (#924)
83  - Unicode filenames in Tahoe-LAFS directories are normalized so that names
84    that differ only in how accents are encoded are treated as the same. (#1076)
85  - Various small improvements to documentation. (#937, #911, #1024, #1082)
86
87 ** Removals
88
89 The 'tahoe debug consolidate' subcommand (for converting old allmydata Windows
90 client backups to a newer format) has been removed.
91
92 ** Dependency Updates
93
94 the Python version dependency is raised to 2.4.4 in some cases (2.4.3 for
95   Redhat-based Linux distributions, 2.4.2 for UCS-2 builds) (#1066)
96 pycrypto >= 2.0.1
97 pyasn1 >= 0.0.8a
98 mock (only required by unit tests)
99
100 * Release 1.6.1 (2010-02-27)
101
102 ** Bugfixes
103
104 *** Correct handling of Small Immutable Directories
105
106 Immutable directories can now be deep-checked and listed in the web UI in
107 all cases. (In v1.6.0, some operations, such as deep-check, on a directory
108 graph that included very small immutable directories, would result in an
109 exception causing the whole operation to abort.) (#948)
110
111 ** Usability Improvements
112
113 Improved user interface messages and error reporting. (#681, #837, #939)
114
115 The timeouts for operation handles have been greatly increased, so that
116 you can view the results of an operation up to 4 days after it has
117 completed. After viewing them for the first time, the results are
118 retained for a further day. (#577)
119
120 * Release 1.6.0 (2010-02-01)
121
122 ** New Features
123
124 *** Immutable Directories
125
126 Tahoe-LAFS can now create and handle immutable directories. (#607, #833, #931)
127 These are read just like normal directories, but are "deep-immutable", meaning
128 that all their children (and everything reachable from those children) must be
129 immutable objects (i.e. immutable or literal files, and other immutable
130 directories).
131
132 These directories must be created in a single webapi call that provides all
133 of the children at once. (Since they cannot be changed after creation, the
134 usual create/add/add sequence cannot be used.) They have URIs that start with
135 "URI:DIR2-CHK:" or "URI:DIR2-LIT:", and are described on the human-facing web
136 interface (aka the "WUI") with a "DIR-IMM" abbreviation (as opposed to "DIR"
137 for the usual read-write directories and "DIR-RO" for read-only directories).
138
139 Tahoe-LAFS releases before 1.6.0 cannot read the contents of an immutable
140 directory. 1.5.0 will tolerate their presence in a directory listing (and
141 display it as "unknown"). 1.4.1 and earlier cannot tolerate them: a DIR-IMM
142 child in any directory will prevent the listing of that directory.
143
144 Immutable directories are repairable, just like normal immutable files.
145
146 The webapi "POST t=mkdir-immutable" call is used to create immutable
147 directories. See docs/frontends/webapi.txt for details.
148
149 *** "tahoe backup" now creates immutable directories, backupdb has dircache
150
151 The "tahoe backup" command has been enhanced to create immutable directories
152 (in previous releases, it created read-only mutable directories) (#828). This
153 is significantly faster, since it does not need to create an RSA keypair for
154 each new directory. Also "DIR-IMM" immutable directories are repairable, unlike
155 "DIR-RO" read-only mutable directories at present. (A future Tahoe-LAFS release
156 should also be able to repair DIR-RO.)
157
158 In addition, the backupdb (used by "tahoe backup" to remember what it has
159 already copied) has been enhanced to store information about existing immutable
160 directories. This allows it to re-use directories that have moved but still
161 contain identical contents, or that have been deleted and later replaced. (The
162 1.5.0 "tahoe backup" command could only re-use directories that were in the
163 same place as they were in the immediately previous backup.)  With this change,
164 the backup process no longer needs to read the previous snapshot out of the
165 Tahoe-LAFS grid, reducing the network load considerably. (#606)
166
167 A "null backup" (in which nothing has changed since the previous backup) will
168 require only two Tahoe-side operations: one to add an Archives/$TIMESTAMP
169 entry, and a second to update the Latest/ link. On the local disk side, it
170 will readdir() all your local directories and stat() all your local files.
171
172 If you've been using "tahoe backup" for a while, you will notice that your
173 first use of it after upgrading to 1.6.0 may take a long time: it must create
174 proper immutable versions of all the old read-only mutable directories. This
175 process won't take as long as the initial backup (where all the file contents
176 had to be uploaded too): it will require time proportional to the number and
177 size of your directories. After this initial pass, all subsequent passes
178 should take a tiny fraction of the time.
179
180 As noted above, Tahoe-LAFS versions earlier than 1.5.0 cannot list a directory
181 containing an immutable subdirectory. Tahoe-LAFS versions earlier than 1.6.0
182 cannot read the contents of an immutable directory.
183
184 The "tahoe backup" command has been improved to skip over unreadable objects
185 (like device files, named pipes, and files with permissions that prevent the
186 command from reading their contents), instead of throwing an exception and
187 terminating the backup process. It also skips over symlinks, because these
188 cannot be represented faithfully in the Tahoe-side filesystem. A warning
189 message will be emitted each time something is skipped. (#729, #850, #641)
190
191 *** "create-node" command added, "create-client" now implies --no-storage
192
193 The basic idea behind Tahoe-LAFS's client+server and client-only processes is
194 that you are creating a general-purpose Tahoe-LAFS "node" process, which has
195 several components that can be activated. Storage service is one of these
196 optional components, as is the Helper, FTP server, and SFTP server. Web gateway
197 functionality is nominally on this list, but it is always active; a future
198 release will make it optional. There are three special purpose servers that
199 can't currently be run as a component in a node: introducer, key-generator,
200 and stats-gatherer.
201
202 So now "tahoe create-node" will create a Tahoe-LAFS node process, and after
203 creation you can edit its tahoe.cfg to enable or disable the desired
204 services. It is a more general-purpose replacement for "tahoe create-client".
205 The default configuration has storage service enabled. For convenience, the
206 "--no-storage" argument makes a tahoe.cfg file that disables storage
207 service. (#760)
208
209 "tahoe create-client" has been changed to create a Tahoe-LAFS node without a
210 storage service. It is equivalent to "tahoe create-node --no-storage". This
211 helps to reduce the confusion surrounding the use of a command with "client" in
212 its name to create a storage *server*. Use "tahoe create-client" to create a
213 purely client-side node. If you want to offer storage to the grid, use
214 "tahoe create-node" instead.
215
216 In the future, other services will be added to the node, and they will be
217 controlled through options in tahoe.cfg . The most important of these
218 services may get additional --enable-XYZ or --disable-XYZ arguments to
219 "tahoe create-node".
220
221 ** Performance Improvements
222
223 Download of immutable files begins as soon as the downloader has located the K
224 necessary shares (#928, #287). In both the previous and current releases, a
225 downloader will first issue queries to all storage servers on the grid to
226 locate shares before it begins downloading the shares. In previous releases of
227 Tahoe-LAFS, download would not begin until all storage servers on the grid had
228 replied to the query, at which point K shares would be chosen for download from
229 among the shares that were located. In this release, download begins as soon as
230 any K shares are located. This means that downloads start sooner, which is
231 particularly important if there is a server on the grid that is extremely slow
232 or even hung in such a way that it will never respond. In previous releases
233 such a server would have a negative impact on all downloads from that grid. In
234 this release, such a server will have no impact on downloads, as long as K
235 shares can be found on other, quicker, servers.  This also means that
236 downloads now use the "best-alacrity" servers that they talk to, as measured by
237 how quickly the servers reply to the initial query. This might cause downloads
238 to go faster, especially on grids with heterogeneous servers or geographical
239 dispersion.
240
241 ** Minor Changes
242
243 The webapi acquired a new "t=mkdir-with-children" command, to create and
244 populate a directory in a single call. This is significantly faster than
245 using separate "t=mkdir" and "t=set-children" operations (it uses one
246 gateway-to-grid roundtrip, instead of three or four). (#533)
247
248 The t=set-children (note the hyphen) operation is now documented in
249 docs/frontends/webapi.txt, and is the new preferred spelling of the old
250 t=set_children (with an underscore). The underscore version remains for
251 backwards compatibility. (#381, #927)
252
253 The tracebacks produced by errors in CLI tools should now be in plain text,
254 instead of HTML (which is unreadable outside of a browser). (#646)
255
256 The [storage]reserved_space configuration knob (which causes the storage
257 server to refuse shares when available disk space drops below a threshold)
258 should work on Windows now, not just UNIX. (#637)
259
260 "tahoe cp" should now exit with status "1" if it cannot figure out a suitable
261 target filename, such as when you copy from a bare filecap. (#761)
262
263 "tahoe get" no longer creates a zero-length file upon error. (#121)
264
265 "tahoe ls" can now list single files. (#457)
266
267 "tahoe deep-check --repair" should tolerate repair failures now, instead of
268 halting traversal. (#874, #786)
269
270 "tahoe create-alias" no longer corrupts the aliases file if it had
271 previously been edited to have no trailing newline. (#741)
272
273 Many small packaging improvements were made to facilitate the "tahoe-lafs"
274 package being included in Ubuntu. Several mac/win32 binary libraries were
275 removed, some figleaf code-coverage files were removed, a bundled copy of
276 darcsver-1.2.1 was removed, and additional licensing text was added.
277
278 Several DeprecationWarnings for python2.6 were silenced. (#859)
279
280 The checker --add-lease option would sometimes fail for shares stored
281 on old (Tahoe v1.2.0) servers. (#875)
282
283 The documentation for installing on Windows (docs/install.html) has been
284 improved. (#773)
285
286 For other changes not mentioned here, see
287 <http://allmydata.org/trac/tahoe/query?milestone=1.6.0&keywords=!~news-done>.
288 To include the tickets mentioned above, go to
289 <http://allmydata.org/trac/tahoe/query?milestone=1.6.0>.
290
291
292 * Release 1.5.0 (2009-08-01)
293
294 ** Improvements
295
296 Uploads of immutable files now use pipelined writes, improving upload speed
297 slightly (10%) over high-latency connections. (#392)
298
299 Processing large directories has been sped up, by removing a O(N^2) algorithm
300 from the dirnode decoding path and retaining unmodified encrypted entries.
301 (#750, #752)
302
303 The human-facing web interface (aka the "WUI") received a significant CSS
304 makeover by Kevin Reid, making it much prettier and easier to read. The WUI
305 "check" and "deep-check" forms now include a "Renew Lease" checkbox,
306 mirroring the CLI --add-lease option, so leases can be added or renewed from
307 the web interface.
308
309 The CLI "tahoe mv" command now refuses to overwrite directories. (#705)
310
311 The CLI "tahoe webopen" command, when run without arguments, will now bring
312 up the "Welcome Page" (node status and mkdir/upload forms).
313
314 The 3.5MB limit on mutable files was removed, so it should be possible to
315 upload arbitrarily-sized mutable files. Note, however, that the data format
316 and algorithm remains the same, so using mutable files still requires
317 bandwidth, computation, and RAM in proportion to the size of the mutable file.
318 (#694)
319
320 This version of Tahoe-LAFS will tolerate directory entries that contain filecap
321 formats which it does not recognize: files and directories from the future.
322 This should improve the user experience (for 1.5.0 users) when we add new cap
323 formats in the future. Previous versions would fail badly, preventing the user
324 from seeing or editing anything else in those directories. These unrecognized
325 objects can be renamed and deleted, but obviously not read or written. Also
326 they cannot generally be copied. (#683)
327
328 ** Bugfixes
329
330 deep-check-and-repair now tolerates read-only directories, such as the ones
331 produced by the "tahoe backup" CLI command. Read-only directories and mutable
332 files are checked, but not repaired. Previous versions threw an exception
333 when attempting the repair and failed to process the remaining contents. We
334 cannot yet repair these read-only objects, but at least this version allows
335 the rest of the check+repair to proceed. (#625)
336
337 A bug in 1.4.1 which caused a server to be listed multiple times (and
338 frequently broke all connections to that server) was fixed. (#653)
339
340 The plaintext-hashing code was removed from the Helper interface, removing
341 the Helper's ability to mount a partial-information-guessing attack. (#722)
342
343 ** Platform/packaging changes
344
345 Tahoe-LAFS now runs on NetBSD, OpenBSD, ArchLinux, and NixOS, and on an
346 embedded system based on an ARM CPU running at 266 MHz.
347
348 Unit test timeouts have been raised to allow the tests to complete on
349 extremely slow platforms like embedded ARM-based NAS boxes, which may take
350 several hours to run the test suite. An ARM-specific data-corrupting bug in
351 an older version of Crypto++ (5.5.2) was identified: ARM-users are encouraged
352 to use recent Crypto++/pycryptopp which avoids this problem.
353
354 Tahoe-LAFS now requires a SQLite library, either the sqlite3 that comes
355 built-in with python2.5/2.6, or the add-on pysqlite2 if you're using
356 python2.4. In the previous release, this was only needed for the "tahoe backup"
357 command: now it is mandatory.
358
359 Several minor documentation updates were made.
360
361 To help get Tahoe-LAFS into Linux distributions like Fedora and Debian,
362 packaging improvements are being made in both Tahoe-LAFS and related libraries
363 like pycryptopp and zfec.
364
365 The Crypto++ library included in the pycryptopp package has been upgraded to
366 version 5.6.0 of Crypto++, which includes a more efficient implementation of
367 SHA-256 in assembly for x86 or amd64 architectures.
368
369 ** dependency updates
370
371  foolscap-0.4.1
372  no python-2.4.0 or 2.4.1 (2.4.2 is good)
373   (they contained a bug in base64.b32decode)
374  avoid python-2.6 on windows with mingw: compiler issues
375  python2.4 requires pysqlite2 (2.5,2.6 does not)
376  no python-3.x
377  pycryptopp-0.5.15
378
379
380 * Release 1.4.1 (2009-04-13)
381
382 ** Garbage Collection
383
384 The big feature for this release is the implementation of garbage collection,
385 allowing Tahoe storage servers to delete shares for old deleted files. When
386 enabled, this uses a "mark and sweep" process: clients are responsible for
387 updating the leases on their shares (generally by running "tahoe deep-check
388 --add-lease"), and servers are allowed to delete any share which does not
389 have an up-to-date lease. The process is described in detail in
390 docs/garbage-collection.txt .
391
392 The server must be configured to enable garbage-collection, by adding
393 directives to the [storage] section that define an age limit for shares. The
394 default configuration will not delete any shares.
395
396 Both servers and clients should be upgraded to this release to make the
397 garbage-collection as pleasant as possible. 1.2.0 servers have code to
398 perform the update-lease operation but it suffers from a fatal bug, while
399 1.3.0 servers have update-lease but will return an exception for unknown
400 storage indices, causing clients to emit an Incident for each exception,
401 slowing the add-lease process down to a crawl. 1.1.0 servers did not have the
402 add-lease operation at all.
403
404 ** Security/Usability Problems Fixed
405
406 A super-linear algorithm in the Merkle Tree code was fixed, which previously
407 caused e.g. download of a 10GB file to take several hours before the first
408 byte of plaintext could be produced. The new "alacrity" is about 2 minutes. A
409 future release should reduce this to a few seconds by fixing ticket #442.
410
411 The previous version permitted a small timing attack (due to our use of
412 strcmp) against the write-enabler and lease-renewal/cancel secrets. An
413 attacker who could measure response-time variations of approximatly 3ns
414 against a very noisy background time of about 15ms might be able to guess
415 these secrets. We do not believe this attack was actually feasible. This
416 release closes the attack by first hashing the two strings to be compared
417 with a random secret.
418
419 ** webapi changes
420
421 In most cases, HTML tracebacks will only be sent if an "Accept: text/html"
422 header was provided with the HTTP request. This will generally cause browsers
423 to get an HTMLized traceback but send regular text/plain tracebacks to
424 non-browsers (like the CLI clients). More errors have been mapped to useful
425 HTTP error codes.
426
427 The streaming webapi operations (deep-check and manifest) now have a way to
428 indicate errors (an output line that starts with "ERROR" instead of being
429 legal JSON). See docs/frontends/webapi.txt for details.
430
431 The storage server now has its own status page (at /storage), linked from the
432 Welcome page. This page shows progress and results of the two new
433 share-crawlers: one which merely counts shares (to give an estimate of how
434 many files/directories are being stored in the grid), the other examines
435 leases and reports how much space would be freed if GC were enabled. The page
436 also shows how much disk space is present, used, reserved, and available for
437 the Tahoe server, and whether the server is currently running in "read-write"
438 mode or "read-only" mode.
439
440 When a directory node cannot be read (perhaps because of insufficent shares),
441 a minimal webapi page is created so that the "more-info" links (including a
442 Check/Repair operation) will still be accessible.
443
444 A new "reliability" page was added, with the beginnings of work on a
445 statistical loss model. You can tell this page how many servers you are using
446 and their independent failure probabilities, and it will tell you the
447 likelihood that an arbitrary file will survive each repair period. The
448 "numpy" package must be installed to access this page. A partial paper,
449 written by Shawn Willden, has been added to docs/proposed/lossmodel.lyx .
450
451 ** CLI changes
452
453 "tahoe check" and "tahoe deep-check" now accept an "--add-lease" argument, to
454 update a lease on all shares. This is the "mark" side of garbage collection.
455
456 In many cases, CLI error messages have been improved: the ugly HTMLized
457 traceback has been replaced by a normal python traceback.
458
459 "tahoe deep-check" and "tahoe manifest" now have better error reporting.
460 "tahoe cp" is now non-verbose by default.
461
462 "tahoe backup" now accepts several "--exclude" arguments, to ignore certain
463 files (like editor temporary files and version-control metadata) during
464 backup.
465
466 On windows, the CLI now accepts local paths like "c:\dir\file.txt", which
467 previously was interpreted as a Tahoe path using a "c:" alias.
468
469 The "tahoe restart" command now uses "--force" by default (meaning it will
470 start a node even if it didn't look like there was one already running).
471
472 The "tahoe debug consolidate" command was added. This takes a series of
473 independent timestamped snapshot directories (such as those created by the
474 allmydata.com windows backup program, or a series of "tahoe cp -r" commands)
475 and creates new snapshots that used shared read-only directories whenever
476 possible (like the output of "tahoe backup"). In the most common case (when
477 the snapshots are fairly similar), the result will use significantly fewer
478 directories than the original, allowing "deep-check" and similar tools to run
479 much faster. In some cases, the speedup can be an order of magnitude or more.
480 This tool is still somewhat experimental, and only needs to be run on large
481 backups produced by something other than "tahoe backup", so it was placed
482 under the "debug" category.
483
484 "tahoe cp -r --caps-only tahoe:dir localdir" is a diagnostic tool which,
485 instead of copying the full contents of files into the local directory,
486 merely copies their filecaps. This can be used to verify the results of a
487 "consolidation" operation.
488
489 ** other fixes
490
491 The codebase no longer rauses RuntimeError as a kind of assert(). Specific
492 exception classes were created for each previous instance of RuntimeError.
493
494 Many unit tests were changed to use a non-network test harness, speeding them
495 up considerably.
496
497 Deep-traversal operations (manifest and deep-check) now walk individual
498 directories in alphabetical order. Occasional turn breaks are inserted to
499 prevent a stack overflow when traversing directories with hundreds of
500 entries.
501
502 The experimental SFTP server had its path-handling logic changed slightly, to
503 accomodate more SFTP clients, although there are still issues (#645).
504
505
506 * Release 1.3.0 (2009-02-13)
507
508 ** Checker/Verifier/Repairer
509
510 The primary focus of this release has been writing a checker / verifier /
511 repairer for files and directories.  "Checking" is the act of asking storage
512 servers whether they have a share for the given file or directory: if there
513 are not enough shares available, the file or directory will be
514 unrecoverable. "Verifying" is the act of downloading and cryptographically
515 asserting that the server's share is undamaged: it requires more work
516 (bandwidth and CPU) than checking, but can catch problems that simple
517 checking cannot. "Repair" is the act of replacing missing or damaged shares
518 with new ones.
519
520 This release includes a full checker, a partial verifier, and a partial
521 repairer. The repairer is able to handle missing shares: new shares are
522 generated and uploaded to make up for the missing ones. This is currently the
523 best application of the repairer: to replace shares that were lost because of
524 server departure or permanent drive failure.
525
526 The repairer in this release is somewhat able to handle corrupted shares. The
527 limitations are:
528
529  * Immutable verifier is incomplete: not all shares are used, and not all
530    fields of those shares are verified. Therefore the immutable verifier has
531    only a moderate chance of detecting corrupted shares.
532  * The mutable verifier is mostly complete: all shares are examined, and most
533    fields of the shares are validated.
534  * The storage server protocol offers no way for the repairer to replace or
535    delete immutable shares. If corruption is detected, the repairer will
536    upload replacement shares to other servers, but the corrupted shares will
537    be left in place.
538  * read-only directories and read-only mutable files must be repaired by
539    someone who holds the write-cap: the read-cap is insufficient. Moreover,
540    the deep-check-and-repair operation will halt with an error if it attempts
541    to repair one of these read-only objects.
542  * Some forms of corruption can cause both download and repair operations to
543    fail. A future release will fix this, since download should be tolerant of
544    any corruption as long as there are at least 'k' valid shares, and repair
545    should be able to fix any file that is downloadable.
546
547 If the downloader, verifier, or repairer detects share corruption, the
548 servers which provided the bad shares will be notified (via a file placed in
549 the BASEDIR/storage/corruption-advisories directory) so their operators can
550 manually delete the corrupted shares and investigate the problem. In
551 addition, the "incident gatherer" mechanism will automatically report share
552 corruption to an incident gatherer service, if one is configured. Note that
553 corrupted shares indicate hardware failures, serious software bugs, or malice
554 on the part of the storage server operator, so a corrupted share should be
555 considered highly unusual.
556
557 By periodically checking/repairing all files and directories, objects in the
558 Tahoe filesystem remain resistant to recoverability failures due to missing
559 and/or broken servers.
560
561 This release includes a wapi mechanism to initiate checks on individual
562 files and directories (with or without verification, and with or without
563 automatic repair). A related mechanism is used to initiate a "deep-check" on
564 a directory: recursively traversing the directory and its children, checking
565 (and/or verifying/repairing) everything underneath. Both mechanisms can be
566 run with an "output=JSON" argument, to obtain machine-readable check/repair
567 status results. These results include a copy of the filesystem statistics
568 from the "deep-stats" operation (including total number of files, size
569 histogram, etc). If repair is possible, a "Repair" button will appear on the
570 results page.
571
572 The client web interface now features some extra buttons to initiate check
573 and deep-check operations. When these operations finish, they display a
574 results page that summarizes any problems that were encountered. All
575 long-running deep-traversal operations, including deep-check, use a
576 start-and-poll mechanism, to avoid depending upon a single long-lived HTTP
577 connection. docs/frontends/webapi.txt has details.
578
579 ** Efficient Backup
580
581 The "tahoe backup" command is new in this release, which creates efficient
582 versioned backups of a local directory. Given a local pathname and a target
583 Tahoe directory, this will create a read-only snapshot of the local directory
584 in $target/Archives/$timestamp. It will also create $target/Latest, which is
585 a reference to the latest such snapshot. Each time you run "tahoe backup"
586 with the same source and target, a new $timestamp snapshot will be added.
587 These snapshots will share directories that have not changed since the last
588 backup, to speed up the process and minimize storage requirements. In
589 addition, a small database is used to keep track of which local files have
590 been uploaded already, to avoid uploading them a second time. This
591 drastically reduces the work needed to do a "null backup" (when nothing has
592 changed locally), making "tahoe backup' suitable to run from a daily cronjob.
593
594 Note that the "tahoe backup" CLI command must be used in conjunction with a
595 1.3.0-or-newer Tahoe client node; there was a bug in the 1.2.0 webapi
596 implementation that would prevent the last step (create $target/Latest) from
597 working.
598
599 ** Large Files
600
601 The 12GiB (approximate) immutable-file-size limitation is lifted. This
602 release knows how to handle so-called "v2 immutable shares", which permit
603 immutable files of up to about 18 EiB (about 3*10^14). These v2 shares are
604 created if the file to be uploaded is too large to fit into v1 shares. v1
605 shares are created if the file is small enough to fit into them, so that
606 files created with tahoe-1.3.0 can still be read by earlier versions if they
607 are not too large. Note that storage servers also had to be changed to
608 support larger files, and this release is the first release in which they are
609 able to do that. Clients will detect which servers are capable of supporting
610 large files on upload and will not attempt to upload shares of a large file
611 to a server which doesn't support it.
612
613 ** FTP/SFTP Server
614
615 Tahoe now includes experimental FTP and SFTP servers. When configured with a
616 suitable method to translate username+password into a root directory cap, it
617 provides simple access to the virtual filesystem. Remember that FTP is
618 completely unencrypted: passwords, filenames, and file contents are all sent
619 over the wire in cleartext, so FTP should only be used on a local (127.0.0.1)
620 connection. This feature is still in development: there are no unit tests
621 yet, and behavior with respect to Unicode filenames is uncertain. Please see
622 docs/frontends/FTP-and-SFTP.txt for configuration details. (#512, #531)
623
624 ** CLI Changes
625
626 This release adds the 'tahoe create-alias' command, which is a combination of
627 'tahoe mkdir' and 'tahoe add-alias'. This also allows you to start using a
628 new tahoe directory without exposing its URI in the argv list, which is
629 publicly visible (through the process table) on most unix systems.  Thanks to
630 Kevin Reid for bringing this issue to our attention.
631
632 The single-argument form of "tahoe put" was changed to create an unlinked
633 file. I.e. "tahoe put bar.txt" will take the contents of a local "bar.txt"
634 file, upload them to the grid, and print the resulting read-cap; the file
635 will not be attached to any directories. This seemed a bit more useful than
636 the previous behavior (copy stdin, upload to the grid, attach the resulting
637 file into your default tahoe: alias in a child named 'bar.txt').
638
639 "tahoe put" was also fixed to handle mutable files correctly: "tahoe put
640 bar.txt URI:SSK:..." will read the contents of the local bar.txt and use them
641 to replace the contents of the given mutable file.
642
643 The "tahoe webopen" command was modified to accept aliases. This means "tahoe
644 webopen tahoe:" will cause your web browser to open to a "wui" page that
645 gives access to the directory associated with the default "tahoe:" alias. It
646 should also accept leading slashes, like "tahoe webopen tahoe:/stuff".
647
648 Many esoteric debugging commands were moved down into a "debug" subcommand:
649
650  tahoe debug dump-cap
651  tahoe debug dump-share
652  tahoe debug find-shares
653  tahoe debug catalog-shares
654  tahoe debug corrupt-share
655
656 The last command ("tahoe debug corrupt-share") flips a random bit of the
657 given local sharefile. This is used to test the file verifying/repairing
658 code, and obviously should not be used on user data.
659
660 The cli might not correctly handle arguments which contain non-ascii
661 characters in Tahoe v1.3 (although depending on your platform it
662 might, especially if your platform can be configured to pass such
663 characters on the command-line in utf-8 encoding).  See
664 http://allmydata.org/trac/tahoe/ticket/565 for details.
665
666 ** Web changes
667
668 The "default webapi port", used when creating a new client node (and in the
669 getting-started documentation), was changed from 8123 to 3456, to reduce
670 confusion when Tahoe accessed through a Firefox browser on which the
671 "Torbutton" extension has been installed. Port 8123 is occasionally used as a
672 Tor control port, so Torbutton adds 8123 to Firefox's list of "banned ports"
673 to avoid CSRF attacks against Tor. Once 8123 is banned, it is difficult to
674 diagnose why you can no longer reach a Tahoe node, so the Tahoe default was
675 changed. Note that 3456 is reserved by IANA for the "vat" protocol, but there
676 are argueably more Torbutton+Tahoe users than vat users these days. Note that
677 this will only affect newly-created client nodes. Pre-existing client nodes,
678 created by earlier versions of tahoe, may still be listening on 8123.
679
680 All deep-traversal operations (start-manifest, start-deep-size,
681 start-deep-stats, start-deep-check) now use a start-and-poll approach,
682 instead of using a single (fragile) long-running synchronous HTTP connection.
683 All these "start-" operations use POST instead of GET. The old "GET
684 manifest", "GET deep-size", and "POST deep-check" operations have been
685 removed.
686
687 The new "POST start-manifest" operation, when it finally completes, results
688 in a table of (path,cap), instead of the list of verifycaps produced by the
689 old "GET manifest". The table is available in several formats: use
690 output=html, output=text, or output=json to choose one. The JSON output also
691 includes stats, and a list of verifycaps and storage-index strings.
692
693 The "return_to=" and "when_done=" arguments have been removed from the
694 t=check and deep-check operations.
695
696 The top-level status page (/status) now has a machine-readable form, via
697 "/status/?t=json". This includes information about the currently-active
698 uploads and downloads, which may be useful for frontends that wish to display
699 progress information. There is no easy way to correlate the activities
700 displayed here with recent wapi requests, however.
701
702 Any files in BASEDIR/public_html/ (configurable) will be served in response
703 to requests in the /static/ portion of the URL space. This will simplify the
704 deployment of javascript-based frontends that can still access wapi calls
705 by conforming to the (regrettable) "same-origin policy".
706
707 The welcome page now has a "Report Incident" button, which is tied into the
708 "Incident Gatherer" machinery. If the node is attached to an incident
709 gatherer (via log_gatherer.furl), then pushing this button will cause an
710 Incident to be signalled: this means recent log events are aggregated and
711 sent in a bundle to the gatherer. The user can push this button after
712 something strange takes place (and they can provide a short message to go
713 along with it), and the relevant data will be delivered to a centralized
714 incident-gatherer for later processing by operations staff.
715
716 The "HEAD" method should now work correctly, in addition to the usual "GET",
717 "PUT", and "POST" methods. "HEAD" is supposed to return exactly the same
718 headers as "GET" would, but without any of the actual response body data. For
719 mutable files, this now does a brief mapupdate (to figure out the size of the
720 file that would be returned), without actually retrieving the file's
721 contents.
722
723 The "GET" operation on files can now support the HTTP "Range:" header,
724 allowing requests for partial content. This allows certain media players to
725 correctly stream audio and movies out of a Tahoe grid. The current
726 implementation uses a disk-based cache in BASEDIR/private/cache/download ,
727 which holds the plaintext of the files being downloaded. Future
728 implementations might not use this cache. GET for immutable files now returns
729 an ETag header.
730
731 Each file and directory now has a "Show More Info" web page, which contains
732 much of the information that was crammed into the directory page before. This
733 includes readonly URIs, storage index strings, object type, buttons to
734 control checking/verifying/repairing, and deep-check/deep-stats buttons (for
735 directories). For mutable files, the "replace contents" upload form has been
736 moved here too. As a result, the directory page is now much simpler and
737 cleaner, and several potentially-misleading links (like t=uri) are now gone.
738
739 Slashes are discouraged in Tahoe file/directory names, since they cause
740 problems when accessing the filesystem through the wapi. However, there are
741 a couple of accidental ways to generate such names. This release tries to
742 make it easier to correct such mistakes by escaping slashes in several
743 places, allowing slashes in the t=info and t=delete commands, and in the
744 source (but not the target) of a t=rename command.
745
746 ** Packaging
747
748 Tahoe's dependencies have been extended to require the "[secure_connections]"
749 feature from Foolscap, which will cause pyOpenSSL to be required and/or
750 installed. If OpenSSL and its development headers are already installed on
751 your system, this can occur automatically. Tahoe now uses pollreactor
752 (instead of the default selectreactor) to work around a bug between pyOpenSSL
753 and the most recent release of Twisted (8.1.0). This bug only affects unit
754 tests (hang during shutdown), and should not impact regular use.
755
756 The Tahoe source code tarballs now come in two different forms: regular and
757 "sumo". The regular tarball contains just Tahoe, nothing else. When building
758 from the regular tarball, the build process will download any unmet
759 dependencies from the internet (starting with the index at PyPI) so it can
760 build and install them. The "sumo" tarball contains copies of all the
761 libraries that Tahoe requires (foolscap, twisted, zfec, etc), so using the
762 "sumo" tarball should not require any internet access during the build
763 process. This can be useful if you want to build Tahoe while on an airplane,
764 a desert island, or other bandwidth-limited environments.
765
766 Similarly, allmydata.org now hosts a "tahoe-deps" tarball which contains the
767 latest versions of all these dependencies. This tarball, located at
768 http://allmydata.org/source/tahoe/deps/tahoe-deps.tar.gz, can be unpacked in
769 the tahoe source tree (or in its parent directory), and the build process
770 should satisfy its downloading needs from it instead of reaching out to PyPI.
771 This can be useful if you want to build Tahoe from a darcs checkout while on
772 that airplane or desert island.
773
774 Because of the previous two changes ("sumo" tarballs and the "tahoe-deps"
775 bundle), most of the files have been removed from misc/dependencies/ . This
776 brings the regular Tahoe tarball down to 2MB (compressed), and the darcs
777 checkout (without history) to about 7.6MB. A full darcs checkout will still
778 be fairly large (because of the historical patches which included the
779 dependent libraries), but a 'lazy' one should now be small.
780
781 The default "make" target is now an alias for "setup.py build", which itself
782 is an alias for "setup.py develop --prefix support", with some extra work
783 before and after (see setup.cfg). Most of the complicated platform-dependent
784 code in the Makefile was rewritten in Python and moved into setup.py,
785 simplifying things considerably.
786
787 Likewise, the "make test" target now delegates most of its work to "setup.py
788 test", which takes care of getting PYTHONPATH configured to access the tahoe
789 code (and dependencies) that gets put in support/lib/ by the build_tahoe
790 step. This should allow unit tests to be run even when trial (which is part
791 of Twisted) wasn't already installed (in this case, trial gets installed to
792 support/bin because Twisted is a dependency of Tahoe).
793
794 Tahoe is now compatible with the recently-released Python 2.6 , although it
795 is recommended to use Tahoe on Python 2.5, on which it has received more
796 thorough testing and deployment.
797
798 Tahoe is now compatible with simplejson-2.0.x . The previous release assumed
799 that simplejson.loads always returned unicode strings, which is no longer the
800 case in 2.0.x .
801
802 ** Grid Management Tools
803
804 Several tools have been added or updated in the misc/ directory, mostly munin
805 plugins that can be used to monitor a storage grid.
806
807 The misc/spacetime/ directory contains a "disk watcher" daemon (startable
808 with 'tahoe start'), which can be configured with a set of HTTP URLs
809 (pointing at the wapi '/statistics' page of a bunch of storage servers),
810 and will periodically fetch disk-used/disk-available information from all the
811 servers. It keeps this information in an Axiom database (a sqlite-based
812 library available from divmod.org). The daemon computes time-averaged rates
813 of disk usage, as well as a prediction of how much time is left before the
814 grid is completely full.
815
816 The misc/munin/ directory contains a new set of munin plugins
817 (tahoe_diskleft, tahoe_diskusage, tahoe_doomsday) which talk to the
818 disk-watcher and provide graphs of its calculations.
819
820 To support the disk-watcher, the Tahoe statistics component (visible through
821 the wapi at the /statistics/ URL) now includes disk-used and disk-available
822 information. Both are derived through an equivalent of the unix 'df' command
823 (i.e. they ask the kernel for the number of free blocks on the partition that
824 encloses the BASEDIR/storage directory). In the future, the disk-available
825 number will be further influenced by the local storage policy: if that policy
826 says that the server should refuse new shares when less than 5GB is left on
827 the partition, then "disk-available" will report zero even though the kernel
828 sees 5GB remaining.
829
830 The 'tahoe_overhead' munin plugin interacts with an allmydata.com-specific
831 server which reports the total of the 'deep-size' reports for all active user
832 accounts, compares this with the disk-watcher data, to report on overhead
833 percentages. This provides information on how much space could be recovered
834 once Tahoe implements some form of garbage collection.
835
836 ** Configuration Changes: single INI-format tahoe.cfg file
837
838 The Tahoe node is now configured with a single INI-format file, named
839 "tahoe.cfg", in the node's base directory. Most of the previous
840 multiple-separate-files are still read for backwards compatibility (the
841 embedded SSH debug server and the advertised_ip_addresses files are the
842 exceptions), but new directives will only be added to tahoe.cfg . The "tahoe
843 create-client" command will create a tahoe.cfg for you, with sample values
844 commented out. (ticket #518)
845
846 tahoe.cfg now has controls for the foolscap "keepalive" and "disconnect"
847 timeouts (#521).
848
849 tahoe.cfg now has controls for the encoding parameters: "shares.needed" and
850 "shares.total" in the "[client]" section. The default parameters are still
851 3-of-10.
852
853 The inefficient storage 'sizelimit' control (which established an upper bound
854 on the amount of space that a storage server is allowed to consume) has been
855 replaced by a lightweight 'reserved_space' control (which establishes a lower
856 bound on the amount of remaining space). The storage server will reject all
857 writes that would cause the remaining disk space (as measured by a '/bin/df'
858 equivalent) to drop below this value. The "[storage]reserved_space="
859 tahoe.cfg parameter controls this setting. (note that this only affects
860 immutable shares: it is an outstanding bug that reserved_space does not
861 prevent the allocation of new mutable shares, nor does it prevent the growth
862 of existing mutable shares).
863
864 ** Other Changes
865
866 Clients now declare which versions of the protocols they support. This is
867 part of a new backwards-compatibility system:
868 http://allmydata.org/trac/tahoe/wiki/Versioning .
869
870 The version strings for human inspection (as displayed on the Welcome web
871 page, and included in logs) now includes a platform identifer (frequently
872 including a linux distribution name, processor architecture, etc).
873
874 Several bugs have been fixed, including one that would cause an exception (in
875 the logs) if a wapi download operation was cancelled (by closing the TCP
876 connection, or pushing the "stop" button in a web browser).
877
878 Tahoe now uses Foolscap "Incidents", writing an "incident report" file to
879 logs/incidents/ each time something weird occurs. These reports are available
880 to an "incident gatherer" through the flogtool command. For more details,
881 please see the Foolscap logging documentation. An incident-classifying plugin
882 function is provided in misc/incident-gatherer/classify_tahoe.py .
883
884 If clients detect corruption in shares, they now automatically report it to
885 the server holding that share, if it is new enough to accept the report.
886 These reports are written to files in BASEDIR/storage/corruption-advisories .
887
888 The 'nickname' setting is now defined to be a UTF-8 -encoded string, allowing
889 non-ascii nicknames.
890
891 The 'tahoe start' command will now accept a --syslog argument and pass it
892 through to twistd, making it easier to launch non-Tahoe nodes (like the
893 cpu-watcher) and have them log to syslogd instead of a local file. This is
894 useful when running a Tahoe node out of a USB flash drive.
895
896 The Mac GUI in src/allmydata/gui/ has been improved.
897
898
899 * Release 1.2.0 (2008-07-21)
900
901 ** Security
902
903 This release makes the immutable-file "ciphertext hash tree" mandatory.
904 Previous releases allowed the uploader to decide whether their file would
905 have an integrity check on the ciphertext or not. A malicious uploader could
906 use this to create a readcap that would download as one file or a different
907 one, depending upon which shares the client fetched first, with no errors
908 raised. There are other integrity checks on the shares themselves, preventing
909 a storage server or other party from violating the integrity properties of
910 the read-cap: this failure was only exploitable by the uploader who gives you
911 a carefully constructed read-cap. If you download the file with Tahoe 1.2.0
912 or later, you will not be vulnerable to this problem. #491
913
914 This change does not introduce a compatibility issue, because all existing
915 versions of Tahoe will emit the ciphertext hash tree in their shares.
916
917 ** Dependencies
918
919 Tahoe now requires Foolscap-0.2.9 . It also requires pycryptopp 0.5 or newer,
920 since earlier versions had a bug that interacted with specific compiler
921 versions that could sometimes result in incorrect encryption behavior. Both
922 packages are included in the Tahoe source tarball in misc/dependencies/ , and
923 should be built automatically when necessary.
924
925 ** Web API
926
927 Web API directory pages should now contain properly-slash-terminated links to
928 other directories. They have also stopped using absolute links in forms and
929 pages (which interfered with the use of a front-end load-balancing proxy).
930
931 The behavior of the "Check This File" button changed, in conjunction with
932 larger internal changes to file checking/verification. The button triggers an
933 immediate check as before, but the outcome is shown on its own page, and does
934 not get stored anywhere. As a result, the web directory page no longer shows
935 historical checker results.
936
937 A new "Deep-Check" button has been added, which allows a user to initiate a
938 recursive check of the given directory and all files and directories
939 reachable from it. This can cause quite a bit of work, and has no
940 intermediate progress information or feedback about the process. In addition,
941 the results of the deep-check are extremely limited. A later release will
942 improve this behavior.
943
944 The web server's behavior with respect to non-ASCII (unicode) filenames in
945 the "GET save=true" operation has been improved. To achieve maximum
946 compatibility with variously buggy web browsers, the server does not try to
947 figure out the character set of the inbound filename. It just echoes the same
948 bytes back to the browser in the Content-Disposition header. This seems to
949 make both IE7 and Firefox work correctly.
950
951 ** Checker/Verifier/Repairer
952
953 Tahoe is slowly acquiring convenient tools to check up on file health,
954 examine existing shares for errors, and repair files that are not fully
955 healthy. This release adds a mutable checker/verifier/repairer, although
956 testing is very limited, and there are no web interfaces to trigger repair
957 yet. The "Check" button next to each file or directory on the wapi page
958 will perform a file check, and the "deep check" button on each directory will
959 recursively check all files and directories reachable from there (which may
960 take a very long time).
961
962 Future releases will improve access to this functionality.
963
964 ** Operations/Packaging
965
966 A "check-grid" script has been added, along with a Makefile target. This is
967 intended (with the help of a pre-configured node directory) to check upon the
968 health of a Tahoe grid, uploading and downloading a few files. This can be
969 used as a monitoring tool for a deployed grid, to be run periodically and to
970 signal an error if it ever fails. It also helps with compatibility testing,
971 to verify that the latest Tahoe code is still able to handle files created by
972 an older version.
973
974 The munin plugins from misc/munin/ are now copied into any generated debian
975 packages, and are made executable (and uncompressed) so they can be symlinked
976 directly from /etc/munin/plugins/ .
977
978 Ubuntu "Hardy" was added as a supported debian platform, with a Makefile
979 target to produce hardy .deb packages. Some notes have been added to
980 docs/debian.txt about building Tahoe on a debian/ubuntu system.
981
982 Storage servers now measure operation rates and latency-per-operation, and
983 provides results through the /statistics web page as well as the stats
984 gatherer. Munin plugins have been added to match.
985
986 ** Other
987
988 Tahoe nodes now use Foolscap "incident logging" to record unusual events to
989 their NODEDIR/logs/incidents/ directory. These incident files can be examined
990 by Foolscap logging tools, or delivered to an external log-gatherer for
991 further analysis. Note that Tahoe now requires Foolscap-0.2.9, since 0.2.8
992 had a bug that complained about "OSError: File exists" when trying to create
993 the incidents/ directory for a second time.
994
995 If no servers are available when retrieving a mutable file (like a
996 directory), the node now reports an error instead of hanging forever. Earlier
997 releases would not only hang (causing the wapi directory listing to get
998 stuck half-way through), but the internal dirnode serialization would cause
999 all subsequent attempts to retrieve or modify the same directory to hang as
1000 well. #463
1001
1002 A minor internal exception (reported in logs/twistd.log, in the
1003 "stopProducing" method) was fixed, which complained about "self._paused_at
1004 not defined" whenever a file download was stopped from the web browser end.
1005
1006
1007 * Release 1.1.0 (2008-06-11)
1008
1009 ** CLI: new "alias" model
1010
1011 The new CLI code uses an scp/rsync -like interface, in which directories in
1012 the Tahoe storage grid are referenced by a colon-suffixed alias. The new
1013 commands look like:
1014  tahoe cp local.txt tahoe:virtual.txt
1015  tahoe ls work:subdir
1016
1017 More functionality is available through the CLI: creating unlinked files and
1018 directories, recursive copy in or out of the storage grid, hardlinks, and
1019 retrieving the raw read- or write- caps through the 'ls' command. Please read
1020 docs/CLI.txt for complete details.
1021
1022 ** wapi: new pages, new commands
1023
1024 Several new pages were added to the web API:
1025
1026  /helper_status : to describe what a Helper is doing
1027  /statistics : reports node uptime, CPU usage, other stats
1028  /file : for easy file-download URLs, see #221
1029  /cap == /uri : future compatibility
1030
1031 The localdir=/localfile= and t=download operations were removed. These
1032 required special configuration to enable anyways, but this feature was a
1033 security problem, and was mostly obviated by the new "cp -r" command.
1034
1035 Several new options to the GET command were added:
1036
1037  t=deep-size : add up the size of all immutable files reachable from the directory
1038  t=deep-stats : return a JSON-encoded description of number of files, size
1039                 distribution, total size, etc
1040
1041 POST is now preferred over PUT for most operations which cause side-effects.
1042
1043 Most wapi calls now accept overwrite=, and default to overwrite=true .
1044
1045 "POST /uri/DIRCAP/parent/child?t=mkdir" is now the preferred API to create
1046 multiple directories at once, rather than ...?t=mkdir-p .
1047
1048 PUT to a mutable file ("PUT /uri/MUTABLEFILECAP", "PUT /uri/DIRCAP/child")
1049 will modify the file in-place.
1050
1051 ** more munin graphs in misc/munin/
1052
1053   tahoe-introstats
1054   tahoe-rootdir-space
1055   tahoe_estimate_files
1056   mutable files published/retrieved
1057   tahoe_cpu_watcher
1058   tahoe_spacetime
1059
1060 ** New Dependencies
1061
1062   zfec 1.1.0
1063   foolscap 0.2.8
1064   pycryptopp 0.5
1065   setuptools (now required at runtime)
1066
1067 ** New Mutable-File Code
1068
1069 The mutable-file handling code (mostly used for directories) has been
1070 completely rewritten. The new scheme has a better API (with a modify()
1071 method) and is less likely to lose data when several uncoordinated writers
1072 change a file at the same time.
1073
1074 In addition, a single Tahoe process will coordinate its own writes. If you
1075 make two concurrent directory-modifying wapi calls to a single tahoe node,
1076 it will internally make one of them wait for the other to complete. This
1077 prevents auto-collision (#391).
1078
1079 The new mutable-file code also detects errors during publish better. Earlier
1080 releases might believe that a mutable file was published when in fact it
1081 failed.
1082
1083 ** other features
1084
1085 The node now monitors its own CPU usage, as a percentage, measured every 60
1086 seconds. 1/5/15 minute moving averages are available on the /statistics web
1087 page and via the stats-gathering interface.
1088
1089 Clients now accelerate reconnection to all servers after being offline
1090 (#374). When a client is offline for a long time, it scales back reconnection
1091 attempts to approximately once per hour, so it may take a while to make the
1092 first attempt, but once any attempt succeeds, the other server connections
1093 will be retried immediately.
1094
1095 A new "offloaded KeyGenerator" facility can be configured, to move RSA key
1096 generation out from, say, a wapi node, into a separate process. RSA keys
1097 can take several seconds to create, and so a wapi node which is being used
1098 for directory creation will be unavailable for anything else during this
1099 time. The Key Generator process will pre-compute a small pool of keys, to
1100 speed things up further. This also takes better advantage of multi-core CPUs,
1101 or SMP hosts.
1102
1103 The node will only use a potentially-slow "du -s" command at startup (to
1104 measure how much space has been used) if the "sizelimit" parameter has been
1105 configured (to limit how much space is used). Large storage servers should
1106 turn off sizelimit until a later release improves the space-management code,
1107 since "du -s" on a terabyte filesystem can take hours.
1108
1109 The Introducer now allows new announcements to replace old ones, to avoid
1110 buildups of obsolete announcements.
1111
1112 Immutable files are limited to about 12GiB (when using the default 3-of-10
1113 encoding), because larger files would be corrupted by the four-byte
1114 share-size field on the storage servers (#439). A later release will remove
1115 this limit. Earlier releases would allow >12GiB uploads, but the resulting
1116 file would be unretrievable.
1117
1118 The docs/ directory has been rearranged, with old docs put in
1119 docs/historical/ and not-yet-implemented ones in docs/proposed/ .
1120
1121 The Mac OS-X FUSE plugin has a significant bug fix: earlier versions would
1122 corrupt writes that used seek() instead of writing the file in linear order.
1123 The rsync tool is known to perform writes in this order. This has been fixed.