From 0ab7ebf81c50c105209de3c50a2c2aa49d87e300 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Fri, 26 Jan 2024 00:30:04 -0600 Subject: [PATCH] mergerfs.cpp --- config.toml | 10 ++++++---- src/mergerfs.cpp | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.toml b/config.toml index 4a6401e4..d0b24826 100644 --- a/config.toml +++ b/config.toml @@ -116,7 +116,7 @@ func.open.policy = 'ff' [branches] min-free-space = 123 -[[branches.tier.0]] +[branches.tier.0] [[branches.tier.0.branch]] name = 'branch0' type = 'scan' @@ -133,6 +133,8 @@ path-type = 'literal' mode = 'RW' if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ? -#[[branches.group.branch]] -#path = '/tmp/mergerfs/*' -#path-type = 'glob' +[branches.tier.1] +[[branches.tier.1.branch]] +name = 'branch0' +type = 'literal' +path = 'foo' diff --git a/src/mergerfs.cpp b/src/mergerfs.cpp index bff3e998..be2b94b0 100644 --- a/src/mergerfs.cpp +++ b/src/mergerfs.cpp @@ -304,7 +304,7 @@ main(int argc_, { auto data = toml::parse("config.toml"); - std::cout << data["branches"] << '\n'; + std::cout << data["branches"]["tier"]["0"] << '\n'; // Branches2 b(data["branches"]);