mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-05 14:20:03 -05:00
branch_tier.cpp
This commit is contained in:
parent
95e3f1ffd1
commit
e194749631
1 changed files with 13 additions and 0 deletions
|
|
@ -70,3 +70,16 @@ BranchTier::BranchTier(toml::value const &v_)
|
|||
l::load_branch_scan(table,_branches);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
BranchTier::copy_enabled_rw(BranchTier &bt_)
|
||||
{
|
||||
for(auto const &b : _branches)
|
||||
{
|
||||
if(b.enabled == false)
|
||||
continue;
|
||||
if(b.mode != Branch2::Mode::RW)
|
||||
continue;
|
||||
bt_.emplace_back(b);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue