Add storage_dir config field

On the [storage] section of the tahoe.cfg now there is a field
'storage_dir' where the path to the storage folder can be configured.
This commit is contained in:
Ruben Pollan
2014-08-16 02:50:17 -05:00
committed by Jean-Paul Calderone
parent a1cb401f06
commit 136de7d7f7
4 changed files with 33 additions and 5 deletions

View File

@ -350,7 +350,8 @@ class _Client(node.Node, pollmixin.PollMixin):
"is not listening ('tub.port=' is empty)")
readonly = self.get_config("storage", "readonly", False, boolean=True)
storedir = os.path.join(self.basedir, self.STOREDIR)
config_storedir = self.get_config("storage", "storage_dir", self.STOREDIR).decode('utf-8')
storedir = os.path.join(self.basedir, config_storedir)
data = self.get_config("storage", "reserved_space", None)
try: