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

jackhatedance 2004-11-01 12:36:48
如果打开缓存模式,copy大文件就死,小文件却没事?
...全文
122 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
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

21,616

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧