Ticket #1208: 1208.diff

File 1208.diff, 1.7 KB (added by warner, at 2011-01-17T05:26:43Z)

patch to fix it

  • docs/configuration.rst

    diff --git a/docs/configuration.rst b/docs/configuration.rst
    index e350c8a..73ae3a2 100644
    a b Storage Server Configuration 
    359359    same thing. Likewise, "1MiB", "1024KiB", and "1048576B" all mean the same
    360360    thing.
    361361
     362    "``tahoe create-node``" generates a tahoe.cfg with
     363    "``reserved_space=1G``", but you may wish to raise, lower, or remove the
     364    reservation to suit your needs.
     365
    362366``expire.enabled =``
    363367
    364368``expire.mode =``
  • src/allmydata/scripts/create_node.py

    diff --git a/src/allmydata/scripts/create_node.py b/src/allmydata/scripts/create_node.py
    index 928add1..26891b9 100644
    a b def create_node(config, out=sys.stdout, err=sys.stderr): 
    126126    storage_enabled = not config.get("no-storage", None)
    127127    c.write("enabled = %s\n" % boolstr[storage_enabled])
    128128    c.write("#readonly =\n")
    129     c.write("#reserved_space =\n")
     129    c.write("reserved_space = 1G\n")
    130130    c.write("#expire.enabled =\n")
    131131    c.write("#expire.mode =\n")
    132132    c.write("\n")
  • src/allmydata/test/test_runner.py

    diff --git a/src/allmydata/test/test_runner.py b/src/allmydata/test/test_runner.py
    index b8e9b8a..b8aa298 100644
    a b class CreateNode(unittest.TestCase): 
    213213                self.failUnless("\n[storage]\nenabled = false\n" in content)
    214214            else:
    215215                self.failUnless("\n[storage]\nenabled = true\n" in content)
     216                self.failUnless("\nreserved_space = 1G\n" in content)
    216217
    217218        # creating the node a second time should be rejected
    218219        rc, out, err = self.run_tahoe(argv)