Browse Source

branch_tier.cpp

toml4
Antonio SJ Musumeci 10 months ago
parent
commit
10d8e7d43f
  1. 4
      config.toml
  2. 6
      src/branch_tier.cpp

4
config.toml

@ -99,8 +99,8 @@ type = 'literal'
path = '/mnt/branch1'
[[branches.tier.branch]]
active = true
path = '/tmp/mergerfs/a'
type = 'literal'
path = '/mnt/disk*'
type = 'glob'
mode = 'RW'
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?

6
src/branch_tier.cpp

@ -17,6 +17,12 @@ BranchTier::BranchTier(toml::value const &v_)
std::string type;
type = table.at("type").as_string();
if(type == "literal")
;
else if(type == "glob")
;
else if(type == "scan")
;
fmt::print("{}\n",type);
}

Loading…
Cancel
Save