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.

142 lines
2.1 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. # test file
  2. version = 0
  3. [filesystem]
  4. name = 'foo'
  5. mountpoint = '/tmp/test'
  6. threads = 0
  7. [fuse]
  8. posix-acl = false
  9. async-read = true
  10. message-size = 256
  11. [func]
  12. inode-calc = 'hybrid-hash'
  13. symlinkify = false
  14. symlinkify-timeout = 0
  15. xattr = 'passthrough'
  16. [func.access]
  17. policy = 'ff'
  18. [func.create]
  19. policy = 'ff'
  20. [func.getattr]
  21. policy = 'ff'
  22. follow-symlinks = 'never'
  23. [func.rmdir]
  24. policy = 'all'
  25. follow-symlinks = 'never'
  26. [func.link]
  27. policy = 'all' # 'preserve-paths' | 'create-paths' | 'per-branch'
  28. exdev = 'passthrough'
  29. [func.write]
  30. policy = 'null'
  31. move-on-enospc = 'mfs'
  32. [func.release]
  33. drop-cache = true
  34. [func.read]
  35. policy = 'null'
  36. [func.getxattr]
  37. security-capability = false
  38. [func.setxattr]
  39. security-capability = false
  40. [func.open]
  41. link-cow = true
  42. nfs-hack = 'off'
  43. [func.rename]
  44. policy = 'all'
  45. exdev = 'passthrough'
  46. [func.statfs]
  47. policy = 'base'
  48. ignore = 'none'
  49. [func.readdir]
  50. policy = 'posix'
  51. readdirplus = false
  52. [cache]
  53. files = 'off'
  54. statfs = 0
  55. attr-timeout = 0
  56. entry-timeout = 0
  57. negative-entry-timeout = 0
  58. writeback = false
  59. symlinks = false
  60. readdir = false
  61. [[branch]]
  62. enabled = true
  63. name = 'foo'
  64. type = 'literal'
  65. path = '/mnt/hdd/foo'
  66. mode = 'RO'
  67. [[branch]]
  68. enabled = true
  69. name = 'bar'
  70. type = 'literal'
  71. path = '/mnt/hdd/foo'
  72. mode = 'RW'
  73. [[branch]]
  74. enabled = true
  75. name = 'ssds'
  76. type = 'glob'
  77. path = '/mnt/ssd/*'
  78. order = 'name:asc' # | size
  79. mode = 'RW'
  80. # scan type: look for paths with a '.mergerfs' file or xattr?
  81. [[branch]]
  82. name = 'asdf'
  83. type = 'scan'
  84. path = '*'
  85. [[branch.group]]
  86. name = 'asdf'
  87. branches = ['ssds']
  88. func.create.policy = 'ep'
  89. func.create.option0 = 'blah'
  90. func.open.policy = 'ff'
  91. [branches]
  92. min-free-space = 123
  93. # TIER 0
  94. [[branches.tier]]
  95. [[branches.tier.branch]]
  96. name = 'branch0'
  97. type = 'scan'
  98. path = '*'
  99. order = 'name:asc' # | size
  100. [[branches.tier.branch]]
  101. name = 'branch1'
  102. type = 'literal'
  103. path = '/mnt/branch1'
  104. [[branches.tier.branch]]
  105. active = true
  106. path = '/tmp/mergerfs/a'
  107. path-type = 'literal'
  108. mode = 'RW'
  109. if-not-mountpoint = 'fail' # 'fail' | 'deactivate' ?
  110. # TIER 1
  111. [[branches.tier]]
  112. [[branches.tier.branch]]
  113. name = 'branch0'
  114. type = 'literal'
  115. path = 'foo'