0001 # SPDX-License-Identifier: GPL-2.0-only
0002
0003 config CACHEFILES
0004 tristate "Filesystem caching on files"
0005 depends on FSCACHE && BLOCK
0006 help
0007 This permits use of a mounted filesystem as a cache for other
0008 filesystems - primarily networking filesystems - thus allowing fast
0009 local disk to enhance the speed of slower devices.
0010
0011 See Documentation/filesystems/caching/cachefiles.rst for more
0012 information.
0013
0014 config CACHEFILES_DEBUG
0015 bool "Debug CacheFiles"
0016 depends on CACHEFILES
0017 help
0018 This permits debugging to be dynamically enabled in the filesystem
0019 caching on files module. If this is set, the debugging output may be
0020 enabled by setting bits in /sys/modules/cachefiles/parameter/debug or
0021 by including a debugging specifier in /etc/cachefilesd.conf.
0022
0023 config CACHEFILES_ERROR_INJECTION
0024 bool "Provide error injection for cachefiles"
0025 depends on CACHEFILES && SYSCTL
0026 help
0027 This permits error injection to be enabled in cachefiles whilst a
0028 cache is in service.
0029
0030 config CACHEFILES_ONDEMAND
0031 bool "Support for on-demand read"
0032 depends on CACHEFILES
0033 default n
0034 help
0035 This permits userspace to enable the cachefiles on-demand read mode.
0036 In this mode, when a cache miss occurs, responsibility for fetching
0037 the data lies with the cachefiles backend instead of with the netfs
0038 and is delegated to userspace.
0039
0040 If unsure, say N.