Commit Graph

5886 Commits

Author SHA1 Message Date
David-Sarah Hopwood
8834a34a7e Add test_leasedb.py.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:33:34 +01:00
David-Sarah Hopwood
d99a093168 leasedb: use a semantic primary key (storage_index, shnum, account_id), rather than an integer, for the leases table.
Take advantage of this to simplify add_or_renew_leases.
Fix a bug in add_starter_lease (which is not used yet) when a starter lease already exists.
Clean up leftover accesses to self._dirty.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:33:34 +01:00
David-Sarah Hopwood
1f61319128 Rename 'buckets' to 'sharesets' on storage status page.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:33:34 +01:00
David-Sarah Hopwood
68cb1b4e74 Remove unused files storage/lease.py and storage/expirer.py.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:33:34 +01:00
Daira Hopwood
0162c8bf69 Main leasedb changes (rebased).
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-04-09 00:33:21 +01:00
David-Sarah Hopwood
dbd6321f37 Remove the 'original-*' and 'configured-*' lease crawler output that won't be supported by the accounting crawler.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:05 +01:00
David-Sarah Hopwood
74d6f4a19b Cosmetics.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:05 +01:00
David-Sarah Hopwood
503a9dfa82 test_storage.py: ss -> server for cases that will remain a server after the server/account split.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:05 +01:00
David-Sarah Hopwood
a17fe86d69 Asyncify crawlers. Note that this breaks tests for the LeaseCrawler
(which is going away, to be replaced by the AccountingCrawler).

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:05 +01:00
David-Sarah Hopwood
a67b54662e scripts/debug.py: remove display of lease information and secrets.
This version replaces the expiration field with '-' instead of '0', per Zooko's comments.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
79e4766b22 Remove the [storage]expire.{mutable,immutable} options.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
91c66e8867 Remove support for [storage]debug_discard option.
(BucketWriter.throw_out_all_data is kept because it might still be useful.)

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
f05887e558 Add new files for leasedb.
Authors: Brian Warner <warner@lothar.com> and David-Sarah Hopwood
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
f3f8d3fd7b Changes to specification of add_lease and renew_lease in RIStorageServer.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
5da509a7c2 docs/garbage-collection.rst: update text for leasedb changes.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
d4184cffc2 Use "PRAGMA synchronous = OFF" for dbutil.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
dfeb188d32 Add util/dbutil.py: open/create/update sqlite databases given some schema.
Author: Brian Warner <warner@lothar.com>
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
814620206a util/fileutil.py: add get_used_space. This version does not use FilePath.
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
David-Sarah Hopwood
7d120c3c58 Some useful Deferred utilities. Addresses Zooko's review comments.
HookMixin and WaitForDelayedCallsMixin have been added for leasedb,
the rest are from the cloud backend branch, with minor improvements.

Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2014-04-09 00:26:04 +01:00
Daira Hopwood
3719978215 misc/simulators/hashbasedsig.py: revert last patch; the original code was correct.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-02-25 16:57:57 +00:00
Daira Hopwood
40c12fc736 misc/simulators/hashbasedsig.py: fix minor miscalculation bug.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-02-25 16:55:19 +00:00
Daira Hopwood
b262f656f4 misc/simulators/hashbasedsig.py: the cost of labels was being double-counted.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-02-25 01:04:03 +00:00
Daira Hopwood
946a9f9ddd misc/simulators/hashbasedsig.py: fix an incorrect comment.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-02-25 00:58:54 +00:00
Daira Hopwood
6ca5f5fc39 Use bigger random one-time keys in timing_safe_compare. fixes #2165
Follows this advice from Marsh Ray and Solar Designer: https://twitter.com/zooko/status/431105294777597952

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-02-24 20:43:23 +00:00
Daira Hopwood
d5651a0d0e Rename 'constant_time_compare' to 'timing_safe_compare'. refs #2165
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2014-02-24 20:43:23 +00:00
Daira Hopwood
04ed7d0705 Merge pull request #85 from leif/isolate-keygen-test
Isolate test_keygen in its own base directory. This also causes KeyGeneratorService to create its base directory if it does not exist.
2014-01-12 14:02:56 -08:00
db43528430 isolate test_keygen data
This makes test_keygen use its own basedir, to avoid polluting the _trial_temp
directory for later tests.
2014-01-12 21:25:11 +00:00
Daira Hopwood
647d88661f Merge pull request #84 from kpreid/patch-1
Change kpreid's email address.
2014-01-12 10:30:37 -08:00
d563cde8f2 Change kpreid's email address. 2014-01-11 09:39:51 -08:00
Daira Hopwood
e1840f1a88 Merge pull request #82 from multikatt/typo
Small typo: "stil" -> "still"
2014-01-02 13:20:35 -08:00
David
7f0c823b14 Small typo: "stil" -> "still" 2014-01-02 01:59:53 +01:00
Daira Hopwood
d2514e995d Merge pull request #81 from multikatt/right_align
Right-align the services div on the WUI Welcome page, to address overlap. refs #1931
2013-12-28 05:47:53 -08:00
David
34517f5f68 Right aligning services div 2013-12-26 23:26:56 +01:00
Daira Hopwood
419df9b0b4 docs/about.rst: Reword and remove redundancy. Also avoid "(S)FTP".
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2013-12-04 01:23:11 +00:00
98e421829e Merge pull request #73 from pataquets/patch-1
Warn about ambiguities on "client" and "gateway" terms
2013-12-03 08:44:17 -08:00
857d072ff4 Warn about ambiguities on "client" and "gateway" terms 2013-12-03 17:25:45 +01:00
9e5080903e Merge pull request #69 from zooko/1948-fix-warnings-from-make-doc-checks-3
1948 fix warnings from make doc checks 3
2013-11-17 08:21:29 -08:00
Zooko Wilcox-O'Hearn
402a66d472 change more links to footnote-style 2013-11-17 15:46:31 +00:00
Zooko Wilcox-O'Hearn
1b0b49aca9 update link to Maildir tips (thanks MK_FG) 2013-11-12 16:37:02 +00:00
Zooko Wilcox-O'Hearn
0bebbe3290 fix warnings from rst2html
Apparently the in-line link syntax with "<>" in them causes these warnings. I
don't know why. I changed them all to a slightly more verbose syntax.

Thanks to Mike Kazantzsev's review comment
(https://github.com/tahoe-lafs/tahoe-lafs/pull/67#commitcomment-4561370), I
moved the links to the end of each section.
2013-11-11 22:04:11 +00:00
Zooko Wilcox-O'Hearn
82579cec96 magic first line tells emacs to use utf8+bom
Add ".. -*- coding: utf-8-with-signature -*-" to the first line of each .rst
file. This tells emacs to treat the file contents as utf-8, and also to prepend
a so-called utf-8 "bom" marker at the beginning of the file. This patch also
prepends those markers to each of those files.
2013-11-08 21:08:05 +00:00
Daira Hopwood
2ac43975ee Fix typo pointed out by CptPlastic.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2013-10-22 02:31:52 +01:00
Daira Hopwood
7f10bf07df Makefile: update comment for 'make clean'.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2013-10-10 19:50:49 +01:00
Daira Hopwood
90c1b8fb57 Merge pull request #64 from daira/2092-distclean
Add 'make distclean'.
2013-10-10 11:42:14 -07:00
Daira Hopwood
95567e55a2 Add 'make distclean'.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2013-10-10 17:47:30 +01:00
Daira Hopwood
5b55ccc526 Merge pull request #63 from zooko/2092-make-clean-shouldnt-remove-allmydata-tahoe-egg-info
remove tahoe egg-info dir from the "clean" rule
2013-10-10 09:41:48 -07:00
Zooko Wilcox-O'Hearn
70939fb454 remove tahoe egg-info dir from the "clean" rule
fixes #2092
2013-10-10 01:52:44 +00:00
Daira Hopwood
3529d31192 Add quotes around command lines in quickstart.rst.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2013-10-05 18:55:01 +01:00
2ce6e401f8 Merge pull request #62 from zooko/master
fix a couple more "file:" links
2013-10-04 21:31:11 -07:00
97f94cece5 Merge pull request #61 from zooko/fix-small-formatting-issues-in-docs
fix small issues in formatting
2013-10-04 21:24:40 -07:00