mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-14 09:55:12 +08:00
branch_tier.hpp
This commit is contained in:
parent
8bdc1fb2d2
commit
d80773ceb8
42
config.toml
42
config.toml
@ -78,59 +78,29 @@ writeback = false
|
||||
symlinks = false
|
||||
readdir = false
|
||||
|
||||
[[branch]]
|
||||
enabled = true
|
||||
name = 'foo'
|
||||
type = 'literal'
|
||||
path = '/mnt/hdd/foo'
|
||||
mode = 'RO'
|
||||
|
||||
[[branch]]
|
||||
enabled = true
|
||||
name = 'bar'
|
||||
type = 'literal'
|
||||
path = '/mnt/hdd/foo'
|
||||
mode = 'RW'
|
||||
|
||||
[[branch]]
|
||||
enabled = true
|
||||
name = 'ssds'
|
||||
type = 'glob'
|
||||
path = '/mnt/ssd/*'
|
||||
order = 'name:asc' # | size
|
||||
mode = 'RW'
|
||||
|
||||
# scan type: look for paths with a '.mergerfs' file or xattr?
|
||||
[[branch]]
|
||||
name = 'asdf'
|
||||
type = 'scan'
|
||||
path = '*'
|
||||
|
||||
[[branch.group]]
|
||||
name = 'asdf'
|
||||
branches = ['ssds']
|
||||
func.create.policy = 'ep'
|
||||
func.create.option0 = 'blah'
|
||||
func.open.policy = 'ff'
|
||||
|
||||
[branches]
|
||||
min-free-space = 123
|
||||
|
||||
# TIER 0
|
||||
[[branches.tier]]
|
||||
func.create.policy = 'mfs'
|
||||
func.open.policy = 'ff'
|
||||
|
||||
[[branches.tier.branch]]
|
||||
enabled = true
|
||||
name = 'branch0'
|
||||
type = 'scan'
|
||||
path = '*'
|
||||
order = 'name:asc' # | size
|
||||
[[branches.tier.branch]]
|
||||
enabled = true
|
||||
name = 'branch1'
|
||||
type = 'literal'
|
||||
path = '/mnt/branch1'
|
||||
[[branches.tier.branch]]
|
||||
active = true
|
||||
path = '/tmp/mergerfs/a'
|
||||
path-type = 'literal'
|
||||
type = 'literal'
|
||||
mode = 'RW'
|
||||
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user