mergerfs/config.toml

144 lines
2.0 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
2024-01-25 03:26:57 +08:00
[[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 = '*'
2024-01-26 13:02:31 +08:00
[[branch.group]]
name = 'asdf'
branches = ['ssds']
func.create.policy = 'ep'
func.create.option0 = 'blah'
func.open.policy = 'ff'
2024-01-24 10:04:32 +08:00
[branches]
min-free-space = 123
2024-01-25 03:26:57 +08:00
layout = [['foo','bar'],['foo']]
2024-01-24 10:04:32 +08:00
2024-01-26 13:02:31 +08:00
[[branches.group]]
[[branches.branch]]
name = 'branch0'
type = 'scan'
path = '*'
[[branches.branch]]
name = 'branch1'
type = 'literal'
path = '/mnt/branch1'
2024-01-24 10:04:32 +08:00
[[branches.group.branch]]
active = true
path = '/tmp/mergerfs/a'
path-type = 'literal'
mode = 'RW'
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?
#[[branches.group.branch]]
#path = '/tmp/mergerfs/*'
#path-type = 'glob'