41 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2 3config CACHEFILES4 tristate "Filesystem caching on files"5 depends on NETFS_SUPPORT && FSCACHE && BLOCK6 help7 This permits use of a mounted filesystem as a cache for other8 filesystems - primarily networking filesystems - thus allowing fast9 local disk to enhance the speed of slower devices.10 11 See Documentation/filesystems/caching/cachefiles.rst for more12 information.13 14config CACHEFILES_DEBUG15 bool "Debug CacheFiles"16 depends on CACHEFILES17 help18 This permits debugging to be dynamically enabled in the filesystem19 caching on files module. If this is set, the debugging output may be20 enabled by setting bits in /sys/modules/cachefiles/parameter/debug or21 by including a debugging specifier in /etc/cachefilesd.conf.22 23config CACHEFILES_ERROR_INJECTION24 bool "Provide error injection for cachefiles"25 depends on CACHEFILES && SYSCTL26 help27 This permits error injection to be enabled in cachefiles whilst a28 cache is in service.29 30config CACHEFILES_ONDEMAND31 bool "Support for on-demand read"32 depends on CACHEFILES33 default n34 help35 This permits userspace to enable the cachefiles on-demand read mode.36 In this mode, when a cache miss occurs, responsibility for fetching37 the data lies with the cachefiles backend instead of with the netfs38 and is delegated to userspace.39 40 If unsure, say N.41