mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-14 09:55:12 +08:00
mergerfs.cpp
This commit is contained in:
parent
8fac887706
commit
39b72434ea
12
config.toml
12
config.toml
@ -116,25 +116,25 @@ func.open.policy = 'ff'
|
||||
[branches]
|
||||
min-free-space = 123
|
||||
|
||||
[branches.tier.0]
|
||||
[[branches.tier.0.branch]]
|
||||
[[branches.tier]]
|
||||
[[branches.tier.branch]]
|
||||
name = 'branch0'
|
||||
type = 'scan'
|
||||
path = '*'
|
||||
order = 'name:asc' # | size
|
||||
[[branches.tier.0.branch]]
|
||||
[[branches.tier.branch]]
|
||||
name = 'branch1'
|
||||
type = 'literal'
|
||||
path = '/mnt/branch1'
|
||||
[[branches.tier.0.branch]]
|
||||
[[branches.tier.branch]]
|
||||
active = true
|
||||
path = '/tmp/mergerfs/a'
|
||||
path-type = 'literal'
|
||||
mode = 'RW'
|
||||
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?
|
||||
|
||||
[branches.tier.1]
|
||||
[[branches.tier.1.branch]]
|
||||
[[branches.tier]]
|
||||
[[branches.tier.branch]]
|
||||
name = 'branch0'
|
||||
type = 'literal'
|
||||
path = 'foo'
|
||||
|
@ -304,7 +304,7 @@ main(int argc_,
|
||||
{
|
||||
auto data = toml::parse("config.toml");
|
||||
|
||||
std::cout << data["branches"]["tier"]["0"] << '\n';
|
||||
std::cout << data["branches"] << '\n';
|
||||
// Branches2 b(data["branches"]);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user