mirror of https://github.com/trapexit/mergerfs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
129 lines
1.9 KiB
129 lines
1.9 KiB
# test file
|
|
|
|
version = 0
|
|
|
|
[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
|
|
|
|
# TIER 0
|
|
[[branches.tier]]
|
|
enabled = true
|
|
|
|
[branches.tier.func.create]
|
|
policy.default = 'mfs'
|
|
[[branches.tier.func.create.policy.overrides]]
|
|
dir = 'foo/bar'
|
|
policy = 'lus'
|
|
[[branches.tier.func.create.policy.overrides]]
|
|
dir = 'blah'
|
|
policy = 'xyz'
|
|
|
|
[branches.tier.func.mkdir]
|
|
policy.default = 'mfs'
|
|
|
|
[[branches.tier.branch]]
|
|
enabled = true
|
|
name = 'branch0'
|
|
type = 'glob'
|
|
path = '*'
|
|
order = 'name:asc' # | size
|
|
mode = 'RW'
|
|
[[branches.tier.branch]]
|
|
enabled = true
|
|
name = 'branch1'
|
|
type = 'literal'
|
|
path = '/mnt/branch1'
|
|
mode = 'RW'
|
|
exclude = ['*.png']
|
|
[[branches.tier.branch]]
|
|
enabled = true
|
|
path = '/mnt/*'
|
|
type = 'glob'
|
|
mode = 'RW'
|
|
if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?
|
|
|
|
|
|
# TIER 1
|
|
[[branches.tier]]
|
|
[[branches.tier.branch]]
|
|
enabled = false
|
|
name = 'branch0'
|
|
type = 'literal'
|
|
path = '/mnt/*'
|
|
mode = 'RO'
|