mergerfs/config.toml

119 lines
1.7 KiB
TOML
Raw Normal View History

2024-01-24 10:04:32 +08:00
# test file
2024-01-24 11:00:59 +08:00
version = 0
2024-01-24 10:04:32 +08:00
[filesystem]
name = 'foo'
mountpoint = '/tmp/test'
threads = 0
[fuse]
posix-acl = false
async-read = true
message-size = 256
[func]
inode-calc = 'hybrid-hash'
symlinkify = false
symlinkify-timeout = 0
xattr = 'passthrough'
[func.access]
policy = 'ff'
[func.create]
policy = 'ff'
[func.getattr]
policy = 'ff'
follow-symlinks = 'never'
[func.rmdir]
policy = 'all'
follow-symlinks = 'never'
[func.link]
policy = 'all' # 'preserve-paths' | 'create-paths' | 'per-branch'
exdev = 'passthrough'
[func.write]
policy = 'null'
move-on-enospc = 'mfs'
[func.release]
drop-cache = true
[func.read]
policy = 'null'
[func.getxattr]
security-capability = false
[func.setxattr]
security-capability = false
[func.open]
link-cow = true
nfs-hack = 'off'
[func.rename]
policy = 'all'
exdev = 'passthrough'
[func.statfs]
policy = 'base'
ignore = 'none'
[func.readdir]
policy = 'posix'
readdirplus = false
[cache]
files = 'off'
statfs = 0
attr-timeout = 0
entry-timeout = 0
negative-entry-timeout = 0
writeback = false
symlinks = false
readdir = false
[branches]
min-free-space = 123
2024-01-27 14:45:00 +08:00
# TIER 0
2024-01-27 14:32:49 +08:00
[[branches.tier]]
2024-02-04 08:48:34 +08:00
[branches.tier.func.create]
policy.default = 'mfs'
2024-01-29 12:30:59 +08:00
func.open.policy = 'ff'
2024-01-27 14:32:49 +08:00
[[branches.tier.branch]]
2024-01-29 12:30:59 +08:00
enabled = true
2024-01-26 13:02:31 +08:00
name = 'branch0'
2024-02-02 13:53:46 +08:00
type = 'glob'
2024-01-26 13:02:31 +08:00
path = '*'
2024-01-26 13:46:12 +08:00
order = 'name:asc' # | size
2024-02-02 14:00:30 +08:00
mode = 'RW'
2024-01-27 14:32:49 +08:00
[[branches.tier.branch]]
2024-01-29 12:30:59 +08:00
enabled = true
2024-01-26 13:02:31 +08:00
name = 'branch1'
2024-02-02 13:26:31 +08:00
type = 'scan'
2024-01-26 13:02:31 +08:00
path = '/mnt/branch1'
2024-02-01 11:38:11 +08:00
mode = 'RW'
2024-01-27 14:32:49 +08:00
[[branches.tier.branch]]
2024-02-01 12:44:36 +08:00
enabled = true
2024-02-01 12:35:59 +08:00
path = '/mnt/*'
2024-01-29 13:19:24 +08:00
type = 'glob'
2024-01-24 10:04:32 +08:00
mode = 'RW'
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?
2024-01-27 14:45:00 +08:00
# TIER 1
2024-01-27 14:32:49 +08:00
[[branches.tier]]
[[branches.tier.branch]]
2024-02-01 11:38:11 +08:00
enabled = true
2024-01-26 14:30:04 +08:00
name = 'branch0'
2024-02-02 13:53:46 +08:00
type = 'literal'
path = '/mnt/*'
2024-02-01 11:38:11 +08:00
mode = 'RO'