mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 21:00:13 -05:00
branch_tier.cpp
This commit is contained in:
parent
281c8eef63
commit
b1d725032e
2 changed files with 2 additions and 14 deletions
|
|
@ -107,9 +107,10 @@ mode = 'RW'
|
||||||
[[branches.tier.branch]]
|
[[branches.tier.branch]]
|
||||||
enabled = true
|
enabled = true
|
||||||
name = 'branch1'
|
name = 'branch1'
|
||||||
type = 'scan'
|
type = 'literal'
|
||||||
path = '/mnt/branch1'
|
path = '/mnt/branch1'
|
||||||
mode = 'RW'
|
mode = 'RW'
|
||||||
|
exclude = ['*.png']
|
||||||
[[branches.tier.branch]]
|
[[branches.tier.branch]]
|
||||||
enabled = true
|
enabled = true
|
||||||
path = '/mnt/*'
|
path = '/mnt/*'
|
||||||
|
|
|
||||||
|
|
@ -75,16 +75,3 @@ BranchTier::BranchTier(toml::value const &v_)
|
||||||
l::load_branch_scan(table,_branches);
|
l::load_branch_scan(table,_branches);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
BranchTier::copy_enabled_rw(BranchTier &bt_) const
|
|
||||||
{
|
|
||||||
for(auto const &b : _branches)
|
|
||||||
{
|
|
||||||
if(b.enabled == false)
|
|
||||||
continue;
|
|
||||||
if(b.mode != +Branch2::Mode::RW)
|
|
||||||
continue;
|
|
||||||
bt_._branches.emplace_back(b);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue