~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/fs/overlayfs/Kconfig

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /fs/overlayfs/Kconfig (Version linux-6.12-rc7) and /fs/overlayfs/Kconfig (Version linux-5.1.21)


  1 # SPDX-License-Identifier: GPL-2.0-only        << 
  2 config OVERLAY_FS                                   1 config OVERLAY_FS
  3         tristate "Overlay filesystem support"       2         tristate "Overlay filesystem support"
  4         select FS_STACK                        << 
  5         select EXPORTFS                             3         select EXPORTFS
  6         help                                        4         help
  7           An overlay filesystem combines two f      5           An overlay filesystem combines two filesystems - an 'upper' filesystem
  8           and a 'lower' filesystem.  When a na      6           and a 'lower' filesystem.  When a name exists in both filesystems, the
  9           object in the 'upper' filesystem is       7           object in the 'upper' filesystem is visible while the object in the
 10           'lower' filesystem is either hidden       8           'lower' filesystem is either hidden or, in the case of directories,
 11           merged with the 'upper' object.           9           merged with the 'upper' object.
 12                                                    10 
 13           For more information see Documentati !!  11           For more information see Documentation/filesystems/overlayfs.txt
 14                                                    12 
 15 config OVERLAY_FS_REDIRECT_DIR                     13 config OVERLAY_FS_REDIRECT_DIR
 16         bool "Overlayfs: turn on redirect dire     14         bool "Overlayfs: turn on redirect directory feature by default"
 17         depends on OVERLAY_FS                      15         depends on OVERLAY_FS
 18         help                                       16         help
 19           If this config option is enabled the     17           If this config option is enabled then overlay filesystems will use
 20           redirects when renaming directories      18           redirects when renaming directories by default.  In this case it is
 21           still possible to turn off redirects     19           still possible to turn off redirects globally with the
 22           "redirect_dir=off" module option or      20           "redirect_dir=off" module option or on a filesystem instance basis
 23           with the "redirect_dir=off" mount op     21           with the "redirect_dir=off" mount option.
 24                                                    22 
 25           Note, that redirects are not backwar     23           Note, that redirects are not backward compatible.  That is, mounting
 26           an overlay which has redirects on a      24           an overlay which has redirects on a kernel that doesn't support this
 27           feature will have unexpected results     25           feature will have unexpected results.
 28                                                    26 
 29           If unsure, say N.                        27           If unsure, say N.
 30                                                    28 
 31 config OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW           29 config OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW
 32         bool "Overlayfs: follow redirects even     30         bool "Overlayfs: follow redirects even if redirects are turned off"
 33         default y                                  31         default y
 34         depends on OVERLAY_FS                      32         depends on OVERLAY_FS
 35         help                                       33         help
 36           Disable this to get a possibly more      34           Disable this to get a possibly more secure configuration, but that
 37           might not be backward compatible wit     35           might not be backward compatible with previous kernels.
 38                                                    36 
 39           If backward compatibility is not an      37           If backward compatibility is not an issue, then it is safe and
 40           recommended to say N here.               38           recommended to say N here.
 41                                                    39 
 42           For more information, see Documentat !!  40           For more information, see Documentation/filesystems/overlayfs.txt
 43                                                    41 
 44           If unsure, say Y.                        42           If unsure, say Y.
 45                                                    43 
 46 config OVERLAY_FS_INDEX                            44 config OVERLAY_FS_INDEX
 47         bool "Overlayfs: turn on inodes index      45         bool "Overlayfs: turn on inodes index feature by default"
 48         depends on OVERLAY_FS                      46         depends on OVERLAY_FS
 49         help                                       47         help
 50           If this config option is enabled the     48           If this config option is enabled then overlay filesystems will use
 51           the index directory to map lower ino     49           the index directory to map lower inodes to upper inodes by default.
 52           In this case it is still possible to     50           In this case it is still possible to turn off index globally with the
 53           "index=off" module option or on a fi     51           "index=off" module option or on a filesystem instance basis with the
 54           "index=off" mount option.                52           "index=off" mount option.
 55                                                    53 
 56           The inodes index feature prevents br     54           The inodes index feature prevents breaking of lower hardlinks on copy
 57           up.                                      55           up.
 58                                                    56 
 59           Note, that the inodes index feature      57           Note, that the inodes index feature is not backward compatible.
 60           That is, mounting an overlay which h     58           That is, mounting an overlay which has an inodes index on a kernel
 61           that doesn't support this feature wi     59           that doesn't support this feature will have unexpected results.
 62                                                    60 
 63           If unsure, say N.                        61           If unsure, say N.
 64                                                    62 
 65 config OVERLAY_FS_NFS_EXPORT                       63 config OVERLAY_FS_NFS_EXPORT
 66         bool "Overlayfs: turn on NFS export fe     64         bool "Overlayfs: turn on NFS export feature by default"
 67         depends on OVERLAY_FS                      65         depends on OVERLAY_FS
 68         depends on OVERLAY_FS_INDEX                66         depends on OVERLAY_FS_INDEX
 69         depends on !OVERLAY_FS_METACOPY            67         depends on !OVERLAY_FS_METACOPY
 70         help                                       68         help
 71           If this config option is enabled the     69           If this config option is enabled then overlay filesystems will use
 72           the index directory to decode overla     70           the index directory to decode overlay NFS file handles by default.
 73           In this case, it is still possible t     71           In this case, it is still possible to turn off NFS export support
 74           globally with the "nfs_export=off" m     72           globally with the "nfs_export=off" module option or on a filesystem
 75           instance basis with the "nfs_export=     73           instance basis with the "nfs_export=off" mount option.
 76                                                    74 
 77           The NFS export feature creates an in     75           The NFS export feature creates an index on copy up of every file and
 78           directory.  This full index is used      76           directory.  This full index is used to detect overlay filesystems
 79           inconsistencies on lookup, like redi     77           inconsistencies on lookup, like redirect from multiple upper dirs to
 80           the same lower dir.  The full index      78           the same lower dir.  The full index may incur some overhead on mount
 81           time, especially when verifying that     79           time, especially when verifying that directory file handles are not
 82           stale.                                   80           stale.
 83                                                    81 
 84           Note, that the NFS export feature is     82           Note, that the NFS export feature is not backward compatible.
 85           That is, mounting an overlay which h     83           That is, mounting an overlay which has a full index on a kernel
 86           that doesn't support this feature wi     84           that doesn't support this feature will have unexpected results.
 87                                                    85 
 88           Most users should say N here and ena     86           Most users should say N here and enable this feature on a case-by-
 89           case basis with the "nfs_export=on"      87           case basis with the "nfs_export=on" mount option.
 90                                                    88 
 91           Say N unless you fully understand th     89           Say N unless you fully understand the consequences.
 92                                                    90 
 93 config OVERLAY_FS_XINO_AUTO                        91 config OVERLAY_FS_XINO_AUTO
 94         bool "Overlayfs: auto enable inode num     92         bool "Overlayfs: auto enable inode number mapping"
 95         default n                                  93         default n
 96         depends on OVERLAY_FS                      94         depends on OVERLAY_FS
 97         depends on 64BIT                       << 
 98         help                                       95         help
 99           If this config option is enabled the     96           If this config option is enabled then overlay filesystems will use
100           unused high bits in underlying files !!  97           unused high bits in undelying filesystem inode numbers to map all
101           inodes to a unified address space.       98           inodes to a unified address space.  The mapped 64bit inode numbers
102           might not be compatible with applica     99           might not be compatible with applications that expect 32bit inodes.
103                                                   100 
104           If compatibility with applications t    101           If compatibility with applications that expect 32bit inodes is not an
105           issue, then it is safe and recommend    102           issue, then it is safe and recommended to say Y here.
106                                                   103 
107           For more information, see Documentat !! 104           For more information, see Documentation/filesystems/overlayfs.txt
108                                                   105 
109           If unsure, say N.                       106           If unsure, say N.
110                                                   107 
111 config OVERLAY_FS_METACOPY                        108 config OVERLAY_FS_METACOPY
112         bool "Overlayfs: turn on metadata only    109         bool "Overlayfs: turn on metadata only copy up feature by default"
113         depends on OVERLAY_FS                     110         depends on OVERLAY_FS
114         select OVERLAY_FS_REDIRECT_DIR            111         select OVERLAY_FS_REDIRECT_DIR
115         help                                      112         help
116           If this config option is enabled the    113           If this config option is enabled then overlay filesystems will
117           copy up only metadata where appropri    114           copy up only metadata where appropriate and data copy up will
118           happen when a file is opened for WRI    115           happen when a file is opened for WRITE operation. It is still
119           possible to turn off this feature gl    116           possible to turn off this feature globally with the "metacopy=off"
120           module option or on a filesystem ins    117           module option or on a filesystem instance basis with the
121           "metacopy=off" mount option.            118           "metacopy=off" mount option.
122                                                   119 
123           Note, that this feature is not backw    120           Note, that this feature is not backward compatible.  That is,
124           mounting an overlay which has metaco    121           mounting an overlay which has metacopy only inodes on a kernel
125           that doesn't support this feature wi    122           that doesn't support this feature will have unexpected results.
126                                                << 
127           If unsure, say N.                    << 
128                                                << 
129 config OVERLAY_FS_DEBUG                        << 
130         bool "Overlayfs: turn on extra debuggi << 
131         default n                              << 
132         depends on OVERLAY_FS                  << 
133         help                                   << 
134           Say Y here to enable extra debugging << 
135                                                   123 
136           If unsure, say N.                       124           If unsure, say N.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php