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.

43 lines
2.4 KiB

  1. # Tips and Notes
  2. * This document is literal and reasonably thorough. If a suspected
  3. feature isn't mentioned it doesn't exist. If certain `libfuse`
  4. arguments aren't listed they probably shouldn't be used.
  5. * Ensure you're using the latest version. Especially before submitting
  6. bug reports.
  7. * Run mergerfs as `root`. mergerfs is designed and intended to be run
  8. as `root` and may exhibit incorrect behavior if run otherwise.
  9. * If you do not see some directories and files you expect, policies
  10. seem to skip branches, you get strange permission errors, etc. be
  11. sure the underlying filesystems' permissions are all the same. Use
  12. `mergerfs.fsck` to audit the filesystem for out of sync permissions.
  13. * If you still have permission issues be sure you are using POSIX ACL
  14. compliant filesystems. mergerfs doesn't generally make exceptions
  15. for FAT, NTFS, or other non-POSIX filesystem.
  16. * Unless using Linux v6.6 or above do **not** use `cache.files=off` if
  17. you expect applications (such as rtorrent) to use
  18. [mmap](http://linux.die.net/man/2/mmap). Enabling `dropcacheonclose`
  19. is recommended when `cache.files=auto-full`.
  20. * [Kodi](http://kodi.tv), [Plex](http://plex.tv),
  21. [Subsonic](http://subsonic.org), etc. can use directory
  22. [mtime](http://linux.die.net/man/2/stat) to more efficiently
  23. determine whether to scan for new content rather than simply
  24. performing a full scan. If using the default `getattr` policy of
  25. `ff` it's possible those programs will miss an update on account of
  26. it returning the first directory found's `stat` info and it is a
  27. later directory on another mount which had the `mtime` recently
  28. updated. To fix this you will want to set
  29. `func.getattr=newest`. Remember though that this is just `stat`. If
  30. the file is later `open`'ed or `unlink`'ed and the policy is
  31. different for those then a completely different file or directory
  32. could be acted on.
  33. * Some policies mixed with some functions may result in strange
  34. behaviors. Not that some of these behaviors and race conditions
  35. couldn't happen outside mergerfs but that they are far more
  36. likely to occur on account of the attempt to merge multiple sources
  37. of data which could be out of sync due to the different policies.
  38. * For consistency it's generally best to set `category` wide policies
  39. rather than individual `func`'s. This will help limit the
  40. confusion of tools such as
  41. [rsync](http://linux.die.net/man/1/rsync). However, the flexibility
  42. is there if needed.