Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. config OVERLAY_FS
  2. tristate "Overlay filesystem support"
  3. select EXPORTFS
  4. help
  5. An overlay filesystem combines two filesystems - an 'upper' filesystem
  6. and a 'lower' filesystem. When a name exists in both filesystems, the
  7. object in the 'upper' filesystem is visible while the object in the
  8. 'lower' filesystem is either hidden or, in the case of directories,
  9. merged with the 'upper' object.
  10. For more information see Documentation/filesystems/overlayfs.txt
  11. config OVERLAY_FS_REDIRECT_DIR
  12. bool "Overlayfs: turn on redirect directory feature by default"
  13. depends on OVERLAY_FS
  14. help
  15. If this config option is enabled then overlay filesystems will use
  16. redirects when renaming directories by default. In this case it is
  17. still possible to turn off redirects globally with the
  18. "redirect_dir=off" module option or on a filesystem instance basis
  19. with the "redirect_dir=off" mount option.
  20. Note, that redirects are not backward compatible. That is, mounting
  21. an overlay which has redirects on a kernel that doesn't support this
  22. feature will have unexpected results.
  23. If unsure, say N.
  24. config OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW
  25. bool "Overlayfs: follow redirects even if redirects are turned off"
  26. default y
  27. depends on OVERLAY_FS
  28. help
  29. Disable this to get a possibly more secure configuration, but that
  30. might not be backward compatible with previous kernels.
  31. If backward compatibility is not an issue, then it is safe and
  32. recommended to say N here.
  33. For more information, see Documentation/filesystems/overlayfs.txt
  34. If unsure, say Y.
  35. config OVERLAY_FS_INDEX
  36. bool "Overlayfs: turn on inodes index feature by default"
  37. depends on OVERLAY_FS
  38. help
  39. If this config option is enabled then overlay filesystems will use
  40. the index directory to map lower inodes to upper inodes by default.
  41. In this case it is still possible to turn off index globally with the
  42. "index=off" module option or on a filesystem instance basis with the
  43. "index=off" mount option.
  44. The inodes index feature prevents breaking of lower hardlinks on copy
  45. up.
  46. Note, that the inodes index feature is not backward compatible.
  47. That is, mounting an overlay which has an inodes index on a kernel
  48. that doesn't support this feature will have unexpected results.
  49. If unsure, say N.
  50. config OVERLAY_FS_NFS_EXPORT
  51. bool "Overlayfs: turn on NFS export feature by default"
  52. depends on OVERLAY_FS
  53. depends on OVERLAY_FS_INDEX
  54. help
  55. If this config option is enabled then overlay filesystems will use
  56. the index directory to decode overlay NFS file handles by default.
  57. In this case, it is still possible to turn off NFS export support
  58. globally with the "nfs_export=off" module option or on a filesystem
  59. instance basis with the "nfs_export=off" mount option.
  60. The NFS export feature creates an index on copy up of every file and
  61. directory. This full index is used to detect overlay filesystems
  62. inconsistencies on lookup, like redirect from multiple upper dirs to
  63. the same lower dir. The full index may incur some overhead on mount
  64. time, especially when verifying that directory file handles are not
  65. stale.
  66. Note, that the NFS export feature is not backward compatible.
  67. That is, mounting an overlay which has a full index on a kernel
  68. that doesn't support this feature will have unexpected results.
  69. Most users should say N here and enable this feature on a case-by-
  70. case basis with the "nfs_export=on" mount option.
  71. Say N unless you fully understand the consequences.
  72. config OVERLAY_FS_XINO_AUTO
  73. bool "Overlayfs: auto enable inode number mapping"
  74. default n
  75. depends on OVERLAY_FS
  76. help
  77. If this config option is enabled then overlay filesystems will use
  78. unused high bits in undelying filesystem inode numbers to map all
  79. inodes to a unified address space. The mapped 64bit inode numbers
  80. might not be compatible with applications that expect 32bit inodes.
  81. If compatibility with applications that expect 32bit inodes is not an
  82. issue, then it is safe and recommended to say Y here.
  83. For more information, see Documentation/filesystems/overlayfs.txt
  84. If unsure, say N.