...
Anchor
...
Figure 7-8 Volume cache architecture
...
Anchor
A cache is defined by three parameters: size, sector type allocation and mode. The size of the cache is the number of sectors that will fit into it at any time. Every sector is classified according to its type, either management, directory or file; the sector type allocation determines the percentage of the cache that will be devoted to each type. The mode determines when cache entries are created (i.e., when sectors are cached) and what happens upon write. Anchor
...
Cache Mode |
...
Description |
...
Cache Mode #define |
...
Read cache |
...
Sectors cached upon read; never cached upon write. |
...
FS_VOL_CACHE_MODE_RD |
...
Write-through cache |
...
Sectors cached upon read and write; data on volume always updated upon write. |
...
...
FS_VOL_CACHE_MODE_WR_THROUGH |
...
Write-back cache |
...
Sectors cached upon read and write; data on volume never updated upon write. |
...
FS_VOL_CACHE_MODE_WR_BACK |
...
Table 7-3 Cache types