Lines Matching +full:io +full:- +full:backends
1 .. SPDX-License-Identifier: GPL-2.0
13 FS-Cache mediates between cache backends (such as CacheFiles) and network
16 +---------+
17 | | +--------------+
18 | NFS |--+ | |
19 | | | +-->| CacheFS |
20 +---------+ | +----------+ | | /dev/hda5 |
21 | | | | +--------------+
22 +---------+ +-------------->| | |
23 | | +-------+ | |--+
24 | AFS |----->| | | FS-Cache |
25 | | | netfs |-->| |--+
26 +---------+ +-->| lib | | | |
27 | | | | | | +--------------+
28 +---------+ | +-------+ +----------+ | | |
29 | | | +-->| CacheFiles |
30 | 9P |--+ | /var/cache |
31 | | +--------------+
32 +---------+
34 Or to look at it another way, FS-Cache is a module that provides a caching
38 +---------+
42 +---------+
46 | +----------+
48 +---------+ | |
50 | NFS |----->| FS-Cache |
51 | | | |--+
52 +---------+ | | | +--------------+ +--------------+
54 V +----------+ +-->| CacheFiles |-->| Ext3 |
55 +---------+ | /var/cache | | /dev/sda6 |
56 | | +--------------+ +--------------+
59 +---------+ +--------------+ |
64 +---------+ +--------------+
68 +---------+ +--------------+
71 FS-Cache does not follow the idea of completely loading every netfs file
84 one-off access of a small portion of it (such as might be done with the
91 FS-Cache provides the following facilities:
122 * Cookie resources are set up and pinned by marking the cookie in-use.
128 A cookie can be marked in-use multiple times simultaneously; each mark
145 The netfs API to FS-Cache can be found in:
147 Documentation/filesystems/caching/netfs-api.rst
149 The cache backend API to FS-Cache can be found in:
151 Documentation/filesystems/caching/backend-api.rst
157 If FS-Cache is compiled with the following options enabled::
165 This shows counts of a number of events that can happen in FS-Cache:
167 +--------------+-------+-------------------------------------------------------+
171 + +-------+-------------------------------------------------------+
173 + +-------+-------------------------------------------------------+
175 + +-------+-------------------------------------------------------+
177 +--------------+-------+-------------------------------------------------------+
179 + +-------+-------------------------------------------------------+
181 + +-------+-------------------------------------------------------+
183 +--------------+-------+-------------------------------------------------------+
185 + +-------+-------------------------------------------------------+
187 + +-------+-------------------------------------------------------+
189 + +-------+-------------------------------------------------------+
191 + +-------+-------------------------------------------------------+
193 +--------------+-------+-------------------------------------------------------+
195 +--------------+-------+-------------------------------------------------------+
197 + +-------+-------------------------------------------------------+
199 + +-------+-------------------------------------------------------+
201 +--------------+-------+-------------------------------------------------------+
203 + +-------+-------------------------------------------------------+
205 + +-------+-------------------------------------------------------+
206 | |drop=N |Number of cookies no longer blocking re-acquisition |
207 +--------------+-------+-------------------------------------------------------+
209 + +-------+-------------------------------------------------------+
211 + +-------+-------------------------------------------------------+
213 +--------------+-------+-------------------------------------------------------+
214 |IO |rd=N |Number of read operations in the cache |
215 + +-------+-------------------------------------------------------+
217 +--------------+-------+-------------------------------------------------------+
225 FS-Cache provides a list of cache cookies:
250 The state can be (-) Inactive, (P)reparing, (A)ctive, (E)rror or (W)ithdrawing.
256 FS-Cache provides a list of volume cookies:
276 CACHE Name of the cache or "-"
284 FS-Cache provides a list of cookies:
293 00000435 00000001 1 0 -1 - 08 0000000201d080070000000000000000, 0000000000000000
294 00000436 00000001 1 0 -1 - 00 0000005601d080080000000000000000, 0000000000000051
295 00000437 00000001 1 0 -1 - 08 00023b3001d0823f0000000000000000, 0000000000000000
296 00000438 00000001 1 0 -1 - 08 0000005801d0807b0000000000000000, 0000000000000000
297 00000439 00000001 1 0 -1 - 08 00023b3201d080a10000000000000000, 0000000000000000
298 0000043a 00000001 1 0 -1 - 08 00023b3401d080a30000000000000000, 0000000000000000
299 0000043b 00000001 1 0 -1 - 08 00023b3601d080b30000000000000000, 0000000000000000
300 0000043c 00000001 1 0 -1 - 08 00023b3801d080b40000000000000000, 0000000000000000
321 If CONFIG_NETFS_DEBUG is enabled, the FS-Cache facility and NETFS support can
337 6-8 (Not used)