]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit - src/allmydata/test/test_client.py
activate storage size limits in the client. Closes #34.
authorBrian Warner <warner@allmydata.com>
Wed, 4 Jul 2007 00:27:07 +0000 (17:27 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 4 Jul 2007 00:27:07 +0000 (17:27 -0700)
commit94e6e6160b24959c28322f659d984e6d692e418b
tree9b113de6d1ad312822fbe45d89358e83d74fca89
parentc80ea7d69399b1536b8cdde9473e705bcc223f31
activate storage size limits in the client. Closes #34.

To use this, write a number like 10MB or 5Gb or 5000000000 to a file
named 'sizelimit' in the client's base directory. The node will not grant
leases for shares that would take it much beyond this many bytes of
storage. Note that metadata is not included in the allocation count until
a restart, so the actual space consumed may grow beyond the limit if
the node is not restarted very frequently and the amount of metadata is
significant.
src/allmydata/client.py
src/allmydata/test/test_client.py