阅读:1153回复:4
网路磁盘的问题
各位大侠哈,我在一个文件系统过滤驱动中想把接收到的IRP,转发到一个网络磁盘上,也就是我想实现一个网路磁盘的二次共享,希望别人能访问我机器上的网络磁盘,该如何实现呢。现在我可以把一下IRP转发出去但是有些消息不成功。能否给些建议,谢谢哈。
|
|
沙发#
发布于:2005-05-02 11:32
Are you doing something like this:
A->B->C where you install your FSFD on B to forward IRPs to C. I never tried this before. Personally I think this design is hard to implement because some of IRPs for file sharing are generated locally on B or C. How can you synchronize them is not clear. Maybe reparse point file can meet your requests. |
|
板凳#
发布于:2005-04-30 09:19
thanks,michaelgz
有些IRP如:IRP_MJ_QUERY_SECURITY,IRP_MJ_FILE_SYSTEM_CTRL等,但是里面的buffer数据结构是不公开的。但是如果不处理的话,又会导致整个调用失败,在其他机器上访问我机器的磁盘(虚拟磁盘)时(CretaeFile),会收到如上的很多消息。如果一个处理不正确,就会导致整个CreateFile调用失败。 有没有其他方法来实现这个功能呢。目的:别的机器可以访问我机器上的网路磁盘。 |
|
地板#
发布于:2005-04-29 18:18
I still don\'t quite understand your question. What do you mean \"有些消息不成功\"? Some IRPs cannot be forwarded? If it is, then you have to analyze those IRPs. Some IRPs only work for local resources which should not be forward at all.
[编辑 - 4/29/05 by michaelgz] |
|
地下室#
发布于:2005-04-29 16:52
自己顶,是不是我没有说清楚啊。
我就是想别的机器可以访问我机器上的网路磁盘。 |
|