branch_tier.cpp

This commit is contained in:
Antonio SJ Musumeci 2024-01-28 23:19:24 -06:00
parent 9d5c9edd1d
commit 10d8e7d43f
2 changed files with 8 additions and 2 deletions

View File

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

View File

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