阅读:1496回复:2
写 fsd filter 是不是一定要 hook fastio?
hook fast io 那一套东东是干嘛用的?我看了很多 filter driver 里面都 hook 了 fastio 那一套东东,包括 filemon 的源代码,以及 ifs kit 的 filter dirver 的示例程序,hook 了一大堆东东,好像只要是 fast io 里面的调用,都要自己写一个函数来替换,难道不能根据需要只 hook 我感兴趣的例程吗?而且好像很多 hook 例程实际上没做什么事情。
而且,就算 hook 了 cache manager 里面的 fastio 那一套东东,还是没有用啊,要是有的 FSD 调用没有使用 cache 呢?那不是就漏过了这些调用?到头来还是要 hook fsd。 是不是写 filter driver 就一定要 hook fastio 呢? |
|
沙发#
发布于:2003-07-29 13:13
Fast I/O is specifically designed for rapid synchronous I/O on cached files. In fast I/O operations, data is transferred directly between user buffers and the system cache, bypassing the file system and the storage driver stack.
File systems are required to support IRPs, but they are not required to support fast I/O. |
|
板凳#
发布于:2003-07-29 16:26
我看了有好几个 filter driver 的 hook 例程仅仅只是把 fastio 的调用传给了它 attached 了的 driver,如果这样的话,那可不可以不要 hook 这些 fastio 调用?
比如说我看到 win ddk 的 diskperf filter driver 就没有 hook fastio,这样做有什么问题吗? |
|