]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/log
tahoe-lafs/tahoe-lafs.git
14 years agoCLI: send 'Accept:' header to ask for text/plain tracebacks. Closes #646.
Brian Warner [Sun, 27 Dec 2009 19:58:28 +0000 (14:58 -0500)]
CLI: send 'Accept:' header to ask for text/plain tracebacks. Closes #646.

The webapi has been looking for an Accept header since 1.4.0, but it treats a
missing header as equal to */* (to honor RFC2616). This change finally
modifies our CLI tools to ask for "text/plain, application/octet-stream",
which seems roughly correct (we either want a plain-text traceback or error
message, or an uninterpreted chunk of binary data to save to disk). Some day
we'll figure out how JSON fits into this scheme.

14 years agoMakefile: upload-tarballs: switch from xfer-client to flappclient, closes #350
Brian Warner [Sun, 27 Dec 2009 16:37:03 +0000 (11:37 -0500)]
Makefile: upload-tarballs: switch from xfer-client to flappclient, closes #350

I've also set up a new flappserver on source@allmydata.org to receive the
tarballs. We still need to replace the gutsy buildslave (which is where the
tarballs used to be generated+uploaded) and give it the new FURL.

14 years agomisc/ringsim.py: make it deterministic, more detail about grid-is-full behavior
Brian Warner [Sun, 27 Dec 2009 02:48:32 +0000 (21:48 -0500)]
misc/ringsim.py: make it deterministic, more detail about grid-is-full behavior

14 years agomisc/ringsim.py: tool to discuss #302
Brian Warner [Sat, 26 Dec 2009 06:03:39 +0000 (01:03 -0500)]
misc/ringsim.py: tool to discuss #302

15 years agodocs: fix helper.txt to describe new config style
Zooko O'Whielacronx [Thu, 24 Dec 2009 22:35:22 +0000 (14:35 -0800)]
docs: fix helper.txt to describe new config style

15 years agodocs/stats.txt: add TOC, notes about controlling gatherer's listening port
Brian Warner [Thu, 24 Dec 2009 20:21:33 +0000 (15:21 -0500)]
docs/stats.txt: add TOC, notes about controlling gatherer's listening port

Thanks to Jody Harris for the suggestions.

15 years agoAdd docs/stats.py, explaining Tahoe stats, the gatherer, and the munin plugins.
Brian Warner [Wed, 23 Dec 2009 05:24:00 +0000 (00:24 -0500)]
Add docs/stats.py, explaining Tahoe stats, the gatherer, and the munin plugins.

15 years agomore #859: avoid deprecation warning for unit tests too, hush pyflakes
Brian Warner [Tue, 15 Dec 2009 00:01:47 +0000 (16:01 -0800)]
more #859: avoid deprecation warning for unit tests too, hush pyflakes

* factor maybe-import-sha logic into util.hashutil

15 years agouse hashlib module if available, thus avoiding a DeprecationWarning for importing...
Zooko O'Whielacronx [Mon, 14 Dec 2009 21:27:03 +0000 (13:27 -0800)]
use hashlib module if available, thus avoiding a DeprecationWarning for importing the old sha module; fixes #859

15 years agodocs: reflow architecture.txt to 78-char lines
Zooko O'Whielacronx [Tue, 8 Dec 2009 23:29:43 +0000 (15:29 -0800)]
docs: reflow architecture.txt to 78-char lines

15 years agodocs: update the about.html a little
Zooko O'Whielacronx [Tue, 8 Dec 2009 21:27:37 +0000 (13:27 -0800)]
docs: update the about.html a little

15 years agodocs: remove obsolete doc file "codemap.txt"
Zooko O'Whielacronx [Fri, 13 Nov 2009 16:30:33 +0000 (08:30 -0800)]
docs: remove obsolete doc file "codemap.txt"
I started to update this to reflect the current codebase, but then I thought (a) nobody seemed to notice that it hasn't been updated since December 2007, and (b) it will just bit-rot again, so I'm removing it.

15 years agomutable/retrieve.py: stop reaching into private MutableFileNode attributes
Brian Warner [Tue, 8 Dec 2009 17:29:21 +0000 (09:29 -0800)]
mutable/retrieve.py: stop reaching into private MutableFileNode attributes

15 years agomutable/servermap.py: stop reaching into private MutableFileNode attributes
Brian Warner [Tue, 8 Dec 2009 17:26:08 +0000 (09:26 -0800)]
mutable/servermap.py: stop reaching into private MutableFileNode attributes

15 years agomutable/servermap.py: oops, query N+e servers in MODE_WRITE, not k+e
Brian Warner [Tue, 8 Dec 2009 17:11:56 +0000 (09:11 -0800)]
mutable/servermap.py: oops, query N+e servers in MODE_WRITE, not k+e

under normal conditions, this wouldn't cause any problems, but if the shares
are really sparse (perhaps because new servers were added), then
file-modifies might stop looking too early and leave old shares in place

15 years agocontrol.py: fix speedtest: use download_best_version (not read) on mutable nodes
Brian Warner [Mon, 7 Dec 2009 06:05:12 +0000 (22:05 -0800)]
control.py: fix speedtest: use download_best_version (not read) on mutable nodes

15 years agoFTP-and-SFTP.txt: fix ssh-keygen pointer
Brian Warner [Mon, 7 Dec 2009 05:28:03 +0000 (21:28 -0800)]
FTP-and-SFTP.txt: fix ssh-keygen pointer

15 years agosetup: ignore _darcs in the "test-clean" test and make the "clean" step remove all...
Zooko O'Whielacronx [Sun, 6 Dec 2009 18:48:35 +0000 (10:48 -0800)]
setup: ignore _darcs in the "test-clean" test and make the "clean" step remove all .egg's in the root dir

15 years agoremove MutableFileNode.download(), prefer download_best_version() instead
Brian Warner [Tue, 1 Dec 2009 22:54:38 +0000 (17:54 -0500)]
remove MutableFileNode.download(), prefer download_best_version() instead

15 years agoSimplify immutable download API: use just filenode.read(consumer, offset, size)
Brian Warner [Tue, 1 Dec 2009 22:44:35 +0000 (17:44 -0500)]
Simplify immutable download API: use just filenode.read(consumer, offset, size)

* remove Downloader.download_to_data/download_to_filename/download_to_filehandle
* remove download.Data/FileName/FileHandle targets
* remove filenode.download/download_to_data/download_to_filename methods
* leave Downloader.download (the whole Downloader will go away eventually)
* add util.consumer.MemoryConsumer/download_to_data, for convenience
  (this is mostly used by unit tests, but it gets used by enough non-test
   code to warrant putting it in allmydata.util)
* update tests
* removes about 180 lines of code. Yay negative code days!

Overall plan is to rewrite immutable/download.py and leave filenode.read() as
the sole read-side API.

15 years agoserver.py: undo my bogus 'correction' of David-Sarah's comment fix
Brian Warner [Tue, 1 Dec 2009 02:46:07 +0000 (21:46 -0500)]
server.py: undo my bogus 'correction' of David-Sarah's comment fix

and move it to a better line

15 years agoImplement more coherent behavior when copying with dircaps/filecaps (closes #761...
Brian Warner [Mon, 30 Nov 2009 21:10:09 +0000 (13:10 -0800)]
Implement more coherent behavior when copying with dircaps/filecaps (closes #761). Patch by Kevan Carstensen.

15 years agostorage.py: update comment
Brian Warner [Mon, 30 Nov 2009 19:59:13 +0000 (11:59 -0800)]
storage.py: update comment

15 years agostorage server: detect disk space usage on Windows too (fixes #637)
david-sarah [Sat, 21 Nov 2009 05:56:44 +0000 (21:56 -0800)]
storage server: detect disk space usage on Windows too (fixes #637)

15 years agomake status of finished operations consistently "Finished"
david-sarah [Sat, 21 Nov 2009 06:15:43 +0000 (22:15 -0800)]
make status of finished operations consistently "Finished"

15 years agoNEWS: update with all user-visible changes since the last release
Brian Warner [Fri, 27 Nov 2009 22:42:17 +0000 (17:42 -0500)]
NEWS: update with all user-visible changes since the last release

15 years agoupdate "tahoe backup" docs, and webapi.txt's mkdir-with-children
Brian Warner [Fri, 27 Nov 2009 05:59:00 +0000 (00:59 -0500)]
update "tahoe backup" docs, and webapi.txt's mkdir-with-children

15 years agoAdd dirnodes to backupdb and "tahoe backup", closes #606.
Brian Warner [Thu, 26 Nov 2009 23:42:57 +0000 (15:42 -0800)]
Add dirnodes to backupdb and "tahoe backup", closes #606.

* backups now share dirnodes with any previous backup, in any location,
  so renames and moves are handled very efficiently
* "tahoe backup" no longer bothers reading the previous snapshot
* if you switch grids, you should delete ~/.tahoe/private/backupdb.sqlite,
  to force new uploads of all files and directories

15 years agowebapi: fix t=check for DIR2-LIT (i.e. empty immutable directories)
Brian Warner [Thu, 26 Nov 2009 23:27:31 +0000 (15:27 -0800)]
webapi: fix t=check for DIR2-LIT (i.e. empty immutable directories)

15 years agoPipelineError: fix str() on python2.4 . Closes #842.
Brian Warner [Tue, 24 Nov 2009 21:25:12 +0000 (13:25 -0800)]
PipelineError: fix str() on python2.4 . Closes #842.

15 years agotest_uri.py: s/NewDirnode/Dirnode/ , now that they aren't "new" anymore
Brian Warner [Fri, 20 Nov 2009 07:55:53 +0000 (23:55 -0800)]
test_uri.py: s/NewDirnode/Dirnode/ , now that they aren't "new" anymore

15 years agointerface name cleanups: IFileNode, IImmutableFileNode, IMutableFileNode
Brian Warner [Fri, 20 Nov 2009 07:52:55 +0000 (23:52 -0800)]
interface name cleanups: IFileNode, IImmutableFileNode, IMutableFileNode

The proper hierarchy is:
 IFilesystemNode
 +IFileNode
 ++IMutableFileNode
 ++IImmutableFileNode
 +IDirectoryNode

Also expand test_client.py (NodeMaker) to hit all IFilesystemNode types.

15 years agoclass name cleanups: s/FileNode/ImmutableFileNode/
Brian Warner [Fri, 20 Nov 2009 07:22:39 +0000 (23:22 -0800)]
class name cleanups: s/FileNode/ImmutableFileNode/

also fix test/bench_dirnode.py for recent dirnode changes

15 years agoUse DIR-IMM and t=mkdir-immutable for "tahoe backup", for #828
Brian Warner [Wed, 18 Nov 2009 19:28:13 +0000 (11:28 -0800)]
Use DIR-IMM and t=mkdir-immutable for "tahoe backup", for #828

15 years agoweb/directory.py: use "DIR-IMM" to describe immutable directories, not DIR-RO
Brian Warner [Wed, 18 Nov 2009 19:18:32 +0000 (11:18 -0800)]
web/directory.py: use "DIR-IMM" to describe immutable directories, not DIR-RO

15 years agoweb/info.py: hush pyflakes
Brian Warner [Wed, 18 Nov 2009 19:17:36 +0000 (11:17 -0800)]
web/info.py: hush pyflakes

15 years agomake get_size/get_current_size consistent for all IFilesystemNode classes
Brian Warner [Wed, 18 Nov 2009 19:16:24 +0000 (11:16 -0800)]
make get_size/get_current_size consistent for all IFilesystemNode classes

* stop caching most_recent_size in dirnode, rely upon backing filenode for it
* start caching most_recent_size in MutableFileNode
* return None when you don't know, not "?"
* only render None as "?" in the web "more info" page
* add get_size/get_current_size to UnknownNode

15 years agoImmutableDirectoryURIVerifier: fix verifycap handling
Brian Warner [Wed, 18 Nov 2009 16:42:38 +0000 (08:42 -0800)]
ImmutableDirectoryURIVerifier: fix verifycap handling

15 years agoAdd t=mkdir-immutable to the webapi. Closes #607. trac-4100
Brian Warner [Wed, 18 Nov 2009 07:09:00 +0000 (23:09 -0800)]
Add t=mkdir-immutable to the webapi. Closes #607.

* change t=mkdir-with-children to not use multipart/form encoding. Instead,
  the request body is all JSON. t=mkdir-immutable uses this format too.
* make nodemaker.create_immutable_dirnode() get convergence from SecretHolder,
  but let callers override it
* raise NotDeepImmutableError instead of using assert()
* add mutable= argument to DirectoryNode.create_subdirectory(), default True

15 years agomove convergence secret into SecretHolder, next to lease secret
Brian Warner [Wed, 18 Nov 2009 01:54:44 +0000 (17:54 -0800)]
move convergence secret into SecretHolder, next to lease secret

15 years agonodemaker: implement immutable directories (internal interface), for #607
Brian Warner [Thu, 12 Nov 2009 00:22:33 +0000 (16:22 -0800)]
nodemaker: implement immutable directories (internal interface), for #607

* nodemaker.create_from_cap() now handles DIR2-CHK and DIR2-LIT
* client.create_immutable_dirnode() is used to create them
* no webapi yet

15 years agostop using IURI()/etc as an adapter
Brian Warner [Wed, 11 Nov 2009 22:45:42 +0000 (14:45 -0800)]
stop using IURI()/etc as an adapter

15 years agoclean up uri-vs-cap terminology, emphasize cap instances instead of URI strings
Brian Warner [Wed, 11 Nov 2009 22:25:42 +0000 (14:25 -0800)]
clean up uri-vs-cap terminology, emphasize cap instances instead of URI strings

 * "cap" means a python instance which encapsulates a filecap/dircap (uri.py)
 * "uri" means a string with a "URI:" prefix
 * FileNode instances are created with (and retain) a cap instance, and
   generate uri strings on demand
 * .get_cap/get_readcap/get_verifycap/get_repaircap return cap instances
 * .get_uri/get_readonly_uri return uri strings

* add filenode.download_to_filename() for control.py, should find a better way
* use MutableFileNode.init_from_cap, not .init_from_uri
* directory URI instances: use get_filenode_cap, not get_filenode_uri
* update/cleanup bench_dirnode.py to match, add Makefile target to run it

15 years agoadd parser for immutable directory caps: DIR2-CHK, DIR2-LIT, DIR2-CHK-Verifier
Brian Warner [Wed, 4 Nov 2009 17:24:53 +0000 (09:24 -0800)]
add parser for immutable directory caps: DIR2-CHK, DIR2-LIT, DIR2-CHK-Verifier

15 years agowui: s/TahoeLAFS/Tahoe-LAFS/
Zooko O'Whielacronx [Thu, 29 Oct 2009 02:50:50 +0000 (18:50 -0800)]
wui: s/TahoeLAFS/Tahoe-LAFS/

15 years agotests: bump up the timeout on test_repairer to see if 120 seconds was too short for...
Zooko O'Whielacronx [Tue, 27 Oct 2009 21:48:00 +0000 (13:48 -0800)]
tests: bump up the timeout on test_repairer to see if 120 seconds was too short for François's ARM box to do the test even when it was doing it right.

15 years agodirnode.pack_children(): add deep_immutable= argument
Brian Warner [Mon, 26 Oct 2009 16:28:09 +0000 (09:28 -0700)]
dirnode.pack_children(): add deep_immutable= argument

This will be used by DIR2:CHK to enforce the deep-immutability requirement.

15 years agowebapi: use t=mkdir-with-children instead of a children= arg to t=mkdir .
Brian Warner [Mon, 26 Oct 2009 01:13:21 +0000 (18:13 -0700)]
webapi: use t=mkdir-with-children instead of a children= arg to t=mkdir .

This is safer: in the earlier API, an old webapi server would silently ignore
the initial children, and clients trying to set them would have to fetch the
newly-created directory to discover the incompatibility. In the new API,
clients using t=mkdir-with-children against an old webapi server will get a
clear error.

15 years agonodemaker.create_new_mutable_directory: pack_children() in initial_contents=
Brian Warner [Sat, 17 Oct 2009 20:31:46 +0000 (13:31 -0700)]
nodemaker.create_new_mutable_directory: pack_children() in initial_contents=
instead of creating an empty file and then adding the children later.

This should speed up mkdir(initial_children) considerably, removing two
roundtrips and an entire read-modify-write cycle, probably bringing it down
to a single roundtrip. A quick test (against the volunteergrid) suggests a
30% speedup.

test_dirnode: add new tests to enforce the restrictions that interfaces.py
claims for create_new_mutable_directory(): no UnknownNodes, metadata dicts

15 years agotest_dirnode.py: add tests of initial_children= args to client.create_dirnode
Brian Warner [Sat, 17 Oct 2009 19:41:59 +0000 (12:41 -0700)]
test_dirnode.py: add tests of initial_children= args to client.create_dirnode
and nodemaker.create_new_mutable_directory

15 years agoupdate many dirnode interfaces to accept dict-of-nodes instead of dict-of-caps
Brian Warner [Sat, 17 Oct 2009 19:28:29 +0000 (12:28 -0700)]
update many dirnode interfaces to accept dict-of-nodes instead of dict-of-caps

interfaces.py: define INodeMaker, document argument values, change
               create_new_mutable_directory() to take dict-of-nodes. Change
               dirnode.set_nodes() and dirnode.create_subdirectory() too.
nodemaker.py: use INodeMaker, update create_new_mutable_directory()
client.py: have create_dirnode() delegate initial_children= to nodemaker
dirnode.py (Adder): take dict-of-nodes instead of list-of-nodes, which
                    updates set_nodes() and create_subdirectory()
web/common.py (convert_initial_children_json): create dict-of-nodes
web/directory.py: same
web/unlinked.py: same
test_dirnode.py: update tests to match

15 years agodirnode.py: move pack_children() out to a function, for eventual use by others
Brian Warner [Sat, 17 Oct 2009 18:07:07 +0000 (11:07 -0700)]
dirnode.py: move pack_children() out to a function, for eventual use by others

15 years agomove dirnode.CachingDict to dictutil.AuxValueDict, generalize method names,
Brian Warner [Sat, 17 Oct 2009 18:00:05 +0000 (11:00 -0700)]
move dirnode.CachingDict to dictutil.AuxValueDict, generalize method names,
improve tests. Let dirnode _pack_children accept either dict or AuxValueDict.

15 years agotest/common.py: update FakeMutableFileNode to new contents= callable scheme
Brian Warner [Tue, 13 Oct 2009 05:21:54 +0000 (22:21 -0700)]
test/common.py: update FakeMutableFileNode to new contents= callable scheme

15 years agoThe initial_children= argument to nodemaker.create_new_mutable_directory is
Brian Warner [Tue, 13 Oct 2009 03:19:22 +0000 (20:19 -0700)]
The initial_children= argument to nodemaker.create_new_mutable_directory is
now enabled.

15 years agoclient.create_mutable_file(contents=) now accepts a callable, which is
Brian Warner [Tue, 13 Oct 2009 03:12:32 +0000 (20:12 -0700)]
client.create_mutable_file(contents=) now accepts a callable, which is
invoked with the new MutableFileNode and is supposed to return the initial
contents. This can be used by e.g. a new dirnode which needs the filenode's
writekey to encrypt its initial children.

create_mutable_file() still accepts a bytestring too, or None for an empty
file.

15 years agowebapi: t=mkdir now accepts initial children, using the same JSON that t=json
Brian Warner [Tue, 13 Oct 2009 02:34:44 +0000 (19:34 -0700)]
webapi: t=mkdir now accepts initial children, using the same JSON that t=json
emits.

client.create_dirnode(initial_children=) now works.

15 years agoreplace dirnode.create_empty_directory() with create_subdirectory(), which
Brian Warner [Tue, 13 Oct 2009 02:15:20 +0000 (19:15 -0700)]
replace dirnode.create_empty_directory() with create_subdirectory(), which
takes an initial_children= argument

15 years agodirnode.set_children: change return value: fire with self instead of None
Brian Warner [Tue, 13 Oct 2009 01:50:26 +0000 (18:50 -0700)]
dirnode.set_children: change return value: fire with self instead of None

15 years agodirnode.set_nodes: change return value: fire with self instead of None
Brian Warner [Tue, 13 Oct 2009 01:45:46 +0000 (18:45 -0700)]
dirnode.set_nodes: change return value: fire with self instead of None

15 years agodirnode.set_children: take a dict, not a list
Brian Warner [Tue, 13 Oct 2009 00:24:40 +0000 (17:24 -0700)]
dirnode.set_children: take a dict, not a list

15 years agodirnode.set_uri/set_children: change signature to take writecap+readcap
Brian Warner [Mon, 12 Oct 2009 23:51:26 +0000 (16:51 -0700)]
dirnode.set_uri/set_children: change signature to take writecap+readcap
instead of a single cap. The webapi t=set_children call benefits too.

15 years agoreplace Client.create_empty_dirnode() with create_dirnode(), in anticipation
Brian Warner [Mon, 12 Oct 2009 22:45:06 +0000 (15:45 -0700)]
replace Client.create_empty_dirnode() with create_dirnode(), in anticipation
of adding initial_children= argument.

Includes stubbed-out initial_children= support.

15 years agotest_web.py: use a less-fake client, making test harness smaller
Brian Warner [Mon, 12 Oct 2009 22:28:08 +0000 (15:28 -0700)]
test_web.py: use a less-fake client, making test harness smaller

15 years agowebapi.txt: document t=set_children, other small edits
Brian Warner [Fri, 9 Oct 2009 20:04:46 +0000 (13:04 -0700)]
webapi.txt: document t=set_children, other small edits

15 years agoVerifier: check the full cryptext-hash tree on each share. Removed .todos
Brian Warner [Mon, 5 Oct 2009 22:18:49 +0000 (15:18 -0700)]
Verifier: check the full cryptext-hash tree on each share. Removed .todos
from the last few test_repairer tests that were waiting on this.

15 years agoVerifier: check the full block-hash-tree on each share
Brian Warner [Mon, 5 Oct 2009 21:48:44 +0000 (14:48 -0700)]
Verifier: check the full block-hash-tree on each share

Removed the .todo from two test_repairer tests that check this. The only
remaining .todos are on the three crypttext-hash-tree tests.

15 years agoVerifier: check the full share-hash chain on each share
Brian Warner [Mon, 5 Oct 2009 21:34:43 +0000 (14:34 -0700)]
Verifier: check the full share-hash chain on each share

Removed the .todo from two test_repairer tests that check this.

15 years agotest_repairer: rename Verifier test cases to be more precise and less verbose
Brian Warner [Mon, 5 Oct 2009 20:11:15 +0000 (13:11 -0700)]
test_repairer: rename Verifier test cases to be more precise and less verbose

15 years agoimmutable/checker.py: rearrange code a little bit, make it easier to follow
Brian Warner [Mon, 5 Oct 2009 20:02:52 +0000 (13:02 -0700)]
immutable/checker.py: rearrange code a little bit, make it easier to follow

15 years agotest/common.py: wrap docstrings to 80cols so I can read them more easily
Brian Warner [Mon, 5 Oct 2009 20:01:43 +0000 (13:01 -0700)]
test/common.py: wrap docstrings to 80cols so I can read them more easily

15 years agoimmutable/download.py: wrap to 80cols, no functional changes
Brian Warner [Mon, 5 Oct 2009 19:25:42 +0000 (12:25 -0700)]
immutable/download.py: wrap to 80cols, no functional changes

15 years agoCHK-hashes.svg: cross out plaintext hashes, since we don't include
Brian Warner [Mon, 5 Oct 2009 01:08:03 +0000 (18:08 -0700)]
CHK-hashes.svg: cross out plaintext hashes, since we don't include
them (until we finish #453)

15 years agodocs: a few licensing clarifications requested by Ubuntu
Zooko O'Whielacronx [Sun, 27 Sep 2009 03:32:26 +0000 (20:32 -0700)]
docs: a few licensing clarifications requested by Ubuntu

15 years agosetup: remove binary WinFUSE modules
Zooko O'Whielacronx [Thu, 24 Sep 2009 21:14:36 +0000 (14:14 -0700)]
setup: remove binary WinFUSE modules
I would prefer to have just source code, or indications of what 3rd-party packages are required, under revision control, and have the build process generate o
r acquire the binaries as needed.  Also, having these in our release tarballs is interfering with getting Tahoe-LAFS uploaded into Ubuntu Karmic.  (Technicall
y, they would accept binary modules as long as they came with the accompanying source so that they could satisfy their obligations under GPL2+ and TGPPL1+, bu
t it is easier for now to remove the binaries from the source tree.)
In this case, the binaries are from the tahoe-w32-client project: http://allmydata.org/trac/tahoe-w32-client , from which you can also get the source.

15 years agosetup: remove binary _fusemodule.so 's
Zooko O'Whielacronx [Thu, 24 Sep 2009 21:11:30 +0000 (14:11 -0700)]
setup: remove binary _fusemodule.so 's
I would prefer to have just source code, or indications of what 3rd-party packages are required, under revision control, and have the build process generate or acquire the binaries as needed.  Also, having these in our release tarballs is interfering with getting Tahoe-LAFS uploaded into Ubuntu Karmic.  (Technically, they would accept binary modules as long as they came with the accompanying source so that they could satisfy their obligations under GPL2+ and TGPPL1+, but it is easier for now to remove the binaries from the source tree.)
In this case, these modules come from the MacFUSE project: http://code.google.com/p/macfuse/

15 years agodoc: add a copy of LGPL2 for documentation purposes for ubuntu
Zooko O'Whielacronx [Thu, 24 Sep 2009 05:42:18 +0000 (22:42 -0700)]
doc: add a copy of LGPL2 for documentation purposes for ubuntu

15 years agosetup: remove a convenience copy of figleaf, to ease inclusion into Ubuntu Karmic...
Zooko O'Whielacronx [Thu, 24 Sep 2009 05:32:15 +0000 (22:32 -0700)]
setup: remove a convenience copy of figleaf, to ease inclusion into Ubuntu Karmic Koala
We need to carefully document the licence of figleaf in order to get Tahoe-LAFS into Ubuntu Karmic Koala.  However, figleaf isn't really a part of Tahoe-LAFS per se -- this is just a "convenience copy" of a development tool.  The quickest way to make Tahoe-LAFS acceptable for Karmic then, is to remove figleaf from the Tahoe-LAFS tarball itself.  People who want to run figleaf on Tahoe-LAFS (as everyone should want) can install figleaf themselves.  I haven't tested this -- there may be incompatibilities between upstream figleaf and the copy that we had here...

15 years agosetup: shebang for misc/build-deb.py to fail quickly
Zooko O'Whielacronx [Wed, 19 Aug 2009 13:56:26 +0000 (06:56 -0700)]
setup: shebang for misc/build-deb.py to fail quickly
Without this patch, when I ran "chmod +x ./misc/build-deb.py && ./misc/build-deb.py" then it hung indefinitely.  (I wonder what it was doing.)

15 years agodocs: Shawn Willden grants permission for his contributions under GPL2+|TGPPL1+
Zooko O'Whielacronx [Mon, 21 Sep 2009 16:46:51 +0000 (09:46 -0700)]
docs: Shawn Willden grants permission for his contributions under GPL2+|TGPPL1+

15 years agodocs: Csaba Henk granted permission to license fuse.py under the same terms as Tahoe...
Zooko O'Whielacronx [Mon, 21 Sep 2009 15:46:59 +0000 (08:46 -0700)]
docs: Csaba Henk granted permission to license fuse.py under the same terms as Tahoe-LAFS itself

15 years agosetup: mark setup.py as having utf-8 encoding in it
Zooko O'Whielacronx [Sun, 20 Sep 2009 18:03:43 +0000 (11:03 -0700)]
setup: mark setup.py as having utf-8 encoding in it

15 years agodoc: licensing cleanups
Zooko O'Whielacronx [Sun, 20 Sep 2009 17:16:31 +0000 (10:16 -0700)]
doc: licensing cleanups
Use nice utf-8 © instead of "(c)". Remove licensing statements on utility modules that have been assigned to allmydata.com by their original authors. (Nattraverso was not assigned to allmydata.com -- it was LGPL'ed -- but I checked and src/allmydata/util/iputil.py was completely rewritten and doesn't contain any line of code from nattraverso.)  Add notes to misc/debian/copyright about licensing on files that aren't just allmydata.com-licensed.

15 years agobuild-deb.py: run darcsver early, otherwise we get the wrong version later on
Brian Warner [Fri, 18 Sep 2009 03:36:20 +0000 (20:36 -0700)]
build-deb.py: run darcsver early, otherwise we get the wrong version later on

15 years agonew approach for debian packaging, sharing pieces across distributions. Still experim...
Brian Warner [Tue, 18 Aug 2009 19:05:27 +0000 (12:05 -0700)]
new approach for debian packaging, sharing pieces across distributions. Still experimental, still only works for sid.

15 years agonew experimental deb-packaging rules. Only works for sid so far.
Brian Warner [Tue, 18 Aug 2009 01:40:52 +0000 (18:40 -0700)]
new experimental deb-packaging rules. Only works for sid so far.

15 years agosetup.py: read _version.py and pass to setup(version=), so more commands work
Brian Warner [Tue, 18 Aug 2009 01:00:57 +0000 (18:00 -0700)]
setup.py: read _version.py and pass to setup(version=), so more commands work
like "setup.py --version" and "setup.py --fullname"

15 years agotest/check_speed.py: fix shbang line
Brian Warner [Tue, 18 Aug 2009 00:59:48 +0000 (17:59 -0700)]
test/check_speed.py: fix shbang line

15 years agosetup: remove bundled version of darcsver-1.2.1
Zooko O'Whielacronx [Sun, 16 Aug 2009 23:34:32 +0000 (16:34 -0700)]
setup: remove bundled version of darcsver-1.2.1
That version of darcsver emits a scary error message when the darcs executable or the _darcs subdirectory is not found.
This error is hidden (unless the --loud option is passed) in darcsver >= 1.3.1.
Fixes #788.

15 years agode-Service-ify Helper, pass in storage_broker and secret_holder directly.
Brian Warner [Sat, 15 Aug 2009 20:17:37 +0000 (13:17 -0700)]
de-Service-ify Helper, pass in storage_broker and secret_holder directly.
This makes it more obvious that the Helper currently generates leases with
the Helper's own secrets, rather than getting values from the client, which
is arguably a bug that will likely be resolved with the Accounting project.

15 years agoimmutable.Downloader: pass StorageBroker to constructor, stop being a Service
Brian Warner [Sat, 15 Aug 2009 19:25:43 +0000 (12:25 -0700)]
immutable.Downloader: pass StorageBroker to constructor, stop being a Service
child of the client, access with client.downloader instead of
client.getServiceNamed("downloader"). The single "Downloader" instance is
scheduled for demolition anyways, to be replaced by individual
filenode.download calls.

15 years agotests: double the timeout on test_runner.RunNode.test_introducer since feisty hit...
Zooko O'Whielacronx [Sat, 15 Aug 2009 16:05:12 +0000 (09:05 -0700)]
tests: double the timeout on test_runner.RunNode.test_introducer since feisty hit a timeout
I'm not sure if this is an actual timing issue (feisty is running on an overloaded VM if I recall correctly), or it there is a deeper bug.

15 years agostop making History be a Service, it wasn't necessary
Brian Warner [Sat, 15 Aug 2009 11:44:15 +0000 (04:44 -0700)]
stop making History be a Service, it wasn't necessary

15 years agoOverhaul IFilesystemNode handling, to simplify tests and use POLA internally.
Brian Warner [Sat, 15 Aug 2009 11:02:56 +0000 (04:02 -0700)]
Overhaul IFilesystemNode handling, to simplify tests and use POLA internally.

* stop using IURI as an adapter
* pass cap strings around instead of URI instances
* move filenode/dirnode creation duties from Client to new NodeMaker class
* move other Client duties to KeyGenerator, SecretHolder, History classes
* stop passing Client reference to dirnode/filenode constructors
  - pass less-powerful references instead, like StorageBroker or Uploader
* always create DirectoryNodes by wrapping a filenode (mutable for now)
* remove some specialized mock classes from unit tests

Detailed list of changes (done one at a time, then merged together)

always pass a string to create_node_from_uri(), not an IURI instance
always pass a string to IFilesystemNode constructors, not an IURI instance
stop using IURI() as an adapter, switch on cap prefix in create_node_from_uri()
client.py: move SecretHolder code out to a separate class
test_web.py: hush pyflakes
client.py: move NodeMaker functionality out into a separate object
LiteralFileNode: stop storing a Client reference
immutable Checker: remove Client reference, it only needs a SecretHolder
immutable Upload: remove Client reference, leave SecretHolder and StorageBroker
immutable Repairer: replace Client reference with StorageBroker and SecretHolder
immutable FileNode: remove Client reference
mutable.Publish: stop passing Client
mutable.ServermapUpdater: get StorageBroker in constructor, not by peeking into Client reference
MutableChecker: reference StorageBroker and History directly, not through Client
mutable.FileNode: removed unused indirection to checker classes
mutable.FileNode: remove Client reference
client.py: move RSA key generation into a separate class, so it can be passed to the nodemaker
move create_mutable_file() into NodeMaker
test_dirnode.py: stop using FakeClient mockups, use NoNetworkGrid instead. This simplifies the code, but takes longer to run (17s instead of 6s). This should come down later when other cleanups make it possible to use simpler (non-RSA) fake mutable files for dirnode tests.
test_mutable.py: clean up basedir names
client.py: move create_empty_dirnode() into NodeMaker
dirnode.py: get rid of DirectoryNode.create
remove DirectoryNode.init_from_uri, refactor NodeMaker for customization, simplify test_web's mock Client to match
stop passing Client to DirectoryNode, make DirectoryNode.create_with_mutablefile the normal DirectoryNode constructor, start removing client from NodeMaker
remove Client from NodeMaker
move helper status into History, pass History to web.Status instead of Client
test_mutable.py: fix minor typo

15 years agodocs: edits for docs/running.html from Sam Mason
Zooko O'Whielacronx [Sun, 9 Aug 2009 20:14:16 +0000 (13:14 -0700)]
docs: edits for docs/running.html from Sam Mason

15 years agodocs: install.html: instruct Debian users to use this document and not to go find...
Zooko O'Whielacronx [Tue, 4 Aug 2009 12:38:40 +0000 (05:38 -0700)]
docs: install.html: instruct Debian users to use this document and not to go find the DownloadDebianPackages page, ignore the warning at the top of it, and try it
http://allmydata.org/pipermail/tahoe-dev/2009-August/002507.html

15 years agodocs: relnotes.txt: reflow to 63 chars wide because google groups and some web forms...
Zooko O'Whielacronx [Sun, 2 Aug 2009 13:50:16 +0000 (06:50 -0700)]
docs: relnotes.txt: reflow to 63 chars wide because google groups and some web forms seem to wrap to that

15 years agodocs: about.html: fix English usage noticed by Amber
Zooko O'Whielacronx [Sun, 2 Aug 2009 05:05:33 +0000 (22:05 -0700)]
docs: about.html: fix English usage noticed by Amber

15 years agodocs: fix mis-spelled word in about.html
Zooko O'Whielacronx [Sun, 2 Aug 2009 05:03:20 +0000 (22:03 -0700)]
docs: fix mis-spelled word in about.html

15 years agoTAG allmydata-tahoe-1.5.0 allmydata-tahoe-1.5.0
Zooko O'Whielacronx [Sun, 2 Aug 2009 03:13:03 +0000 (20:13 -0700)]
TAG allmydata-tahoe-1.5.0