虚拟文件或“链接”文件
我需要创建一个“虚拟文件”,如果某个程序访问该文件,则可以回答该文件的大小、权限,并“说出”其中写入的内容。
为什么? 我有一个具有虚拟硬盘的虚拟机,我需要该文件是到其他远程位置的“链接”(虚拟机程序不知道) 当虚拟机尝试读取时,我需要“说出”写入的内容,而当它尝试写入时,我需要存储在其他位置。 在大多数情况下,文件位于网络中并分割在许多计算机中(如网络文件系统),然后我需要知道文件中的每个更改/访问/读取并处理请求。 我无法修改/注入目标程序(第三方)。
我在这个网站上发现了一个关于虚拟文件的问题,但我需要实时了解文件中的所有更改。 我搜索了 File Hooks 但一无所获。 我尝试使用虚拟驱动程序,但很难找到一些代码(例如守护进程工具,但具有读/写功能)。 我想在远程文件夹(或映射驱动器)中使用 FTP,但文件大小太大(10-50 GB),我需要读取文件的特定部分。
预先感谢您的任何帮助。 (视窗)
I need to create a "virtual file", a file that if some program access that file, e can answer the size, permissions, and 'say' what is writen in it.
Why?
I have a Virtual Machine that have and Virtual Hard Disk, and i need that file be a 'link' to other and far location (unknow by Virtual Machine Program)
When the VM try to read, i need to 'say' what is writen, and when it´s try to write, i need to store in other location.
In most cases the file is in a network and splited in many computers (like a Network FileSystem) then i need to know every change/access/read in file and deal with the request.
I can't modify/inject the target program (third-party).
I found a question in this site about Virtual File, but i need to know in real time all changes in the file.
I searched for File Hooks and found nothing.
I tryed to use a virtual driver, but it´s hard to find some code (like Daemon Tools, but with Read/Write).
I thought in a remote folder (or mapped drive) with FTP, but the file size is TOO big (10-50 GB) and i need to read specific sections of the file.
Thanks in advance for any help.
(Windows)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找的称为筛选器驱动程序。
What you are looking for is called a Filter Driver.