mergerfs.cpp

This commit is contained in:
Antonio SJ Musumeci 2024-01-26 00:30:04 -06:00
parent d0501b36c1
commit 0ab7ebf81c
2 changed files with 7 additions and 5 deletions

View File

@ -116,7 +116,7 @@ func.open.policy = 'ff'
[branches]
min-free-space = 123
[[branches.tier.0]]
[branches.tier.0]
[[branches.tier.0.branch]]
name = 'branch0'
type = 'scan'
@ -133,6 +133,8 @@ path-type = 'literal'
mode = 'RW'
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?
#[[branches.group.branch]]
#path = '/tmp/mergerfs/*'
#path-type = 'glob'
[branches.tier.1]
[[branches.tier.1.branch]]
name = 'branch0'
type = 'literal'
path = 'foo'

View File

@ -304,7 +304,7 @@ main(int argc_,
{
auto data = toml::parse("config.toml");
std::cout << data["branches"] << '\n';
std::cout << data["branches"]["tier"]["0"] << '\n';
// Branches2 b(data["branches"]);