does cache manager flush cache before handling noncache io?

APIs like ZwCreateFile and FltWriteFile have flags to perform noncached IO, does system flush dirty data in cache before handling noncachedio to keep cache consistency? Or it is possbile that noncached read can get stale data?

To be accurate, the file system instructs the cache manager to flush (read path) or flush and purge (write path). Check out the FAT sources.

Absent misbehaving filters, the only way data- staleness can occur is via careful abuse of sections …

1 Like

good, thanks rod