From 10d8e7d43fb855cd798c8ba04a9e97bca4c6b402 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sun, 28 Jan 2024 23:19:24 -0600 Subject: [PATCH] branch_tier.cpp --- config.toml | 4 ++-- src/branch_tier.cpp | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index b4071ac7..7543e160 100644 --- a/config.toml +++ b/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' ? diff --git a/src/branch_tier.cpp b/src/branch_tier.cpp index 4fc54b77..9926f8d0 100644 --- a/src/branch_tier.cpp +++ b/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); }