mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-19 04:57:54 +00:00
Set "reserved_space=1G" in newly-created storage nodes. Closes #1208.
This commit is contained in:
parent
727b25f622
commit
45212d8000
@ -359,6 +359,10 @@ Storage Server Configuration
|
||||
same thing. Likewise, "1MiB", "1024KiB", and "1048576B" all mean the same
|
||||
thing.
|
||||
|
||||
"``tahoe create-node``" generates a tahoe.cfg with
|
||||
"``reserved_space=1G``", but you may wish to raise, lower, or remove the
|
||||
reservation to suit your needs.
|
||||
|
||||
``expire.enabled =``
|
||||
|
||||
``expire.mode =``
|
||||
|
@ -126,7 +126,7 @@ def create_node(config, out=sys.stdout, err=sys.stderr):
|
||||
storage_enabled = not config.get("no-storage", None)
|
||||
c.write("enabled = %s\n" % boolstr[storage_enabled])
|
||||
c.write("#readonly =\n")
|
||||
c.write("#reserved_space =\n")
|
||||
c.write("reserved_space = 1G\n")
|
||||
c.write("#expire.enabled =\n")
|
||||
c.write("#expire.mode =\n")
|
||||
c.write("\n")
|
||||
|
@ -213,6 +213,7 @@ class CreateNode(unittest.TestCase):
|
||||
self.failUnless("\n[storage]\nenabled = false\n" in content)
|
||||
else:
|
||||
self.failUnless("\n[storage]\nenabled = true\n" in content)
|
||||
self.failUnless("\nreserved_space = 1G\n" in content)
|
||||
|
||||
# creating the node a second time should be rejected
|
||||
rc, out, err = self.run_tahoe(argv)
|
||||
|
Loading…
Reference in New Issue
Block a user