mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-15 02:35:12 +08:00
branch_tier.cpp
This commit is contained in:
parent
9d5c9edd1d
commit
10d8e7d43f
@ -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' ?
|
||||||
|
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user