Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable storage path #472

Merged
merged 4 commits into from
Mar 19, 2018

Conversation

exarkun
Copy link
Member

@exarkun exarkun commented Mar 19, 2018

Relates to #2045 but does not completely resolve it.

This introduces a new configuration item to the storage section of tahoe.cfg, storage_dir. This item tells a storage node where in the filesystem the directory to use for share storage can be found.

For example,

[storage]
storage_dir = /foo/bar

Now, instead of using $BASEDIR/storage this node will use /foo/bar.

These changes were in part pulled out of #104 (which includes more changes for making more things configurable). I hope that pulling one specific feature out the chances of having it merged quickly are greater (and may even improve the chances of getting the rest of #104 merged).

meskio and others added 3 commits March 19, 2018 11:20
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.
Copy link
Contributor

@meejah meejah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, LGTM. One inline comment.

``storage_dir = (string, optional)``

This specifies a storing directory.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like "This is where share files and other state pertaining to storage-servers will be kept".

@codecov-io
Copy link

codecov-io commented Mar 19, 2018

Codecov Report

Merging #472 into master will increase coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #472      +/-   ##
==========================================
+ Coverage   90.09%   90.11%   +0.02%     
==========================================
  Files         144      144              
  Lines       27316    27321       +5     
  Branches     3926     3927       +1     
==========================================
+ Hits        24609    24619      +10     
+ Misses       1964     1959       -5     
  Partials      743      743
Impacted Files Coverage Δ
src/allmydata/client.py 87.13% <100%> (+0.03%) ⬆️
src/allmydata/scripts/create_node.py 98.32% <50%> (-0.66%) ⬇️
src/allmydata/mutable/servermap.py 93.38% <0%> (-0.33%) ⬇️
src/allmydata/web/status.py 82.75% <0%> (-0.12%) ⬇️
src/allmydata/immutable/upload.py 95.53% <0%> (+0.27%) ⬆️
src/allmydata/mutable/publish.py 96.66% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a1cb401...6fd1f12. Read the comment docs.

@exarkun exarkun merged commit ee20a69 into tahoe-lafs:master Mar 19, 2018
@exarkun exarkun deleted the 2045.configurable-storage-path branch March 19, 2018 20:38
@meskio
Copy link
Contributor

meskio commented Mar 20, 2018

Wow, nice. I'm happy to see it merged. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants