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 / NOTES
  2. - This document is literal and thorough. If a suspected feature isn't
  3. mentioned it doesn't exist. If certain libfuse arguments aren't
  4. listed they probably shouldn't be used.
  5. - Ensure you're using the latest version.
  6. - Run mergerfs as `root`. mergerfs is designed and intended to be run
  7. as `root` and may exibit incorrect behavior if run otherwise..
  8. - If you don't see some directories and files you expect, policies
  9. seem to skip branches, you get strange permission errors, etc. be
  10. sure the underlying filesystems' permissions are all the same. Use
  11. `mergerfs.fsck` to audit the filesystem for out of sync permissions.
  12. - If you still have permission issues be sure you are using POSIX ACL
  13. compliant filesystems. mergerfs doesn't generally make exceptions
  14. for FAT, NTFS, or other non-POSIX filesystem.
  15. - Do **not** use `cache.files=off` if you expect applications (such as
  16. rtorrent) to use [mmap](http://linux.die.net/man/2/mmap)
  17. files. Shared mmap is not currently supported in FUSE w/ page
  18. caching disabled. Enabling `dropcacheonclose` is recommended when
  19. `cache.files=partial|full|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
  26. of it returning the first directory found's **stat** info and it's 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
  30. **stat**. If the file is later **open**'ed or **unlink**'ed and the
  31. policy is different for those then a completely different file or
  32. directory 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.