Cached and non-cached requests

When file read or write operation occurs, there are 3 possible "ways" the information goes:

  1. from an application or some system component to the system cache
  2. from the cache to the file system
  3. from an application to the file system (bypassing the cache)
By default, CBFS Filter tracks operations (2) and (3) (so-called non-cached operations). To catch operation (1) you need to set ProcessCachedReadWriteCallbacks property to true.

To distinguish between "cached" and "non-cached" request, you can use Direction parameter of OnReadFileC, OnWriteFileC, OnPostReadFileC and OnPostWriteFileC callbacks.

Normally, you don't need to care about cached requests at all, so ProcessCachedReadWriteCallbacks is false by default.