阅读:2183回复:4
请问有没办法防止在关闭文件句柄的时候的windows回写啊。
目前想向一个文件写东西,但是每当用zwclose关闭句柄时,windows都会回写,请各位达人赐教!
谢谢! |
|
沙发#
发布于:2009-12-25 05:02
Probably you can open the file without buffering.
Just curious, why you care about this page flushing after CleanUp? |
|
板凳#
发布于:2009-12-25 11:02
谢谢!因为我想改变文件的内容,但是写进去的东西在zwclose后用winhex看,并没有写进去。
|
|
地板#
发布于:2009-12-25 11:47
After you write something into cache, Cache Manager or File System will decide when to flush the cache. The flushing can be a few seconds later or performed in CleanUp. As long as the file is updated correctly, why you care about when system flushes dirty pages out?
|
|
地下室#
发布于:2009-12-28 15:56
谢谢,问题已经解决,就是缓冲的问题造成的。
|
|