filedisk中的镜像文件为什么不能打开缓存模式?

jackhatedance 2004-11-01 12:36:48
如果打开缓存模式,copy大文件就死,小文件却没事?
...全文
67 点赞 收藏 2
写回复
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
rendy 2005-08-24
// an extra check here and don't alow disk images to be compressed/encrypted.
回复
rendy 2005-08-24
因为它本身也使用文件来模拟的,如果打开缓存模式,就会陷入一个死循环里(它本身也要缓存)。

以下是原代码中的说明:
// The NT cache manager can deadlock if a filesystem that is using the cache
// manager is used in a virtual disk that stores its file on a filesystem
// that is also using the cache manager, this is why we open the file with
// FILE_NO_INTERMEDIATE_BUFFERING above, however if the file is compressed
// or encrypted NT will not honor this request and cache it anyway since it
// need to store the decompressed/unencrypted data somewhere, therefor we put
回复
发动态
发帖子
驱动开发/核心开发
创建于2007-09-28

2.1w+

社区成员

硬件/嵌入开发 驱动开发/核心开发
申请成为版主
社区公告
暂无公告