xref: /linux/fs/cachefiles/Kconfig (revision 06d07429858317ded2db7986113a9e0129cd599b)
177443f61SDavid Howells# SPDX-License-Identifier: GPL-2.0-only
277443f61SDavid Howells
377443f61SDavid Howellsconfig CACHEFILES
477443f61SDavid Howells	tristate "Filesystem caching on files"
5*915cd30cSDavid Howells	depends on NETFS_SUPPORT && FSCACHE && BLOCK
677443f61SDavid Howells	help
777443f61SDavid Howells	  This permits use of a mounted filesystem as a cache for other
877443f61SDavid Howells	  filesystems - primarily networking filesystems - thus allowing fast
977443f61SDavid Howells	  local disk to enhance the speed of slower devices.
1077443f61SDavid Howells
1177443f61SDavid Howells	  See Documentation/filesystems/caching/cachefiles.rst for more
1277443f61SDavid Howells	  information.
1377443f61SDavid Howells
1477443f61SDavid Howellsconfig CACHEFILES_DEBUG
1577443f61SDavid Howells	bool "Debug CacheFiles"
1677443f61SDavid Howells	depends on CACHEFILES
1777443f61SDavid Howells	help
1877443f61SDavid Howells	  This permits debugging to be dynamically enabled in the filesystem
1977443f61SDavid Howells	  caching on files module.  If this is set, the debugging output may be
2077443f61SDavid Howells	  enabled by setting bits in /sys/modules/cachefiles/parameter/debug or
2177443f61SDavid Howells	  by including a debugging specifier in /etc/cachefilesd.conf.
22a70f6526SDavid Howells
23a70f6526SDavid Howellsconfig CACHEFILES_ERROR_INJECTION
24a70f6526SDavid Howells	bool "Provide error injection for cachefiles"
25a70f6526SDavid Howells	depends on CACHEFILES && SYSCTL
26a70f6526SDavid Howells	help
27a70f6526SDavid Howells	  This permits error injection to be enabled in cachefiles whilst a
28a70f6526SDavid Howells	  cache is in service.
29c8383054SJeffle Xu
30c8383054SJeffle Xuconfig CACHEFILES_ONDEMAND
31c8383054SJeffle Xu	bool "Support for on-demand read"
32c8383054SJeffle Xu	depends on CACHEFILES
33c8383054SJeffle Xu	default n
34c8383054SJeffle Xu	help
35c8383054SJeffle Xu	  This permits userspace to enable the cachefiles on-demand read mode.
36c8383054SJeffle Xu	  In this mode, when a cache miss occurs, responsibility for fetching
37c8383054SJeffle Xu	  the data lies with the cachefiles backend instead of with the netfs
38c8383054SJeffle Xu	  and is delegated to userspace.
39c8383054SJeffle Xu
40c8383054SJeffle Xu	  If unsure, say N.
41