RE: [ntfsd] RE: very stuck with a bug - very long and involvedHi,
It is my understanding that when you use FILE_FLAG_NO_BUFFERING to open a file in CreateFile,
there should be no buffering between the cache manager/file system driver and the storage driver.
However, when I write and read to a file created in this way, I do not see the reads being directed to
the storage device, it is as if the data is being cached and read from a buffer, which seems completely
contradictory to the documentation.
Is this expected behaviour ?
Is there a way I can specify a file to be non-cached in all respects ?
Is there a way I can purge the cache (from User level, I have tried FlushFileBuffers, that does not seem to
purge the cache)
Any other suggestions ?
Isn’t there a way to verify that data has been written from disk ?
I am using W2K and the above only happens on an NTFS partition, FAT32 is OK, I have also tried CreateFile with FILE_FLAG_WRITE_THROUGH as well…that didn’t work either,
regards,
John