From 39b72434ea12a041616fdb75b5b1e895bcf9d1de Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Sat, 27 Jan 2024 00:32:49 -0600 Subject: [PATCH] mergerfs.cpp --- config.toml | 12 ++++++------ src/mergerfs.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.toml b/config.toml index d0b24826..08349848 100644 --- a/config.toml +++ b/config.toml @@ -116,25 +116,25 @@ func.open.policy = 'ff' [branches] min-free-space = 123 -[branches.tier.0] -[[branches.tier.0.branch]] +[[branches.tier]] +[[branches.tier.branch]] name = 'branch0' type = 'scan' path = '*' order = 'name:asc' # | size -[[branches.tier.0.branch]] +[[branches.tier.branch]] name = 'branch1' type = 'literal' path = '/mnt/branch1' -[[branches.tier.0.branch]] +[[branches.tier.branch]] active = true path = '/tmp/mergerfs/a' path-type = 'literal' mode = 'RW' if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ? -[branches.tier.1] -[[branches.tier.1.branch]] +[[branches.tier]] +[[branches.tier.branch]] name = 'branch0' type = 'literal' path = 'foo' diff --git a/src/mergerfs.cpp b/src/mergerfs.cpp index be2b94b0..bff3e998 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"]["tier"]["0"] << '\n'; + std::cout << data["branches"] << '\n'; // Branches2 b(data["branches"]);