在 Windows 中安装流编码器作为驱动器?
由于各种原因,围绕复制成本和 Windows 文件系统的麻烦,我需要安装一个流编码器作为驱动器,以便传入的数据可以简单地直接定向到这个“驱动器”,进行聚合和编码,源程序并不知情。这在 Linux 上基本上是微不足道的,但在 Windows 上似乎是一场艰苦的斗争。
具体来说,我希望能够“安装”一个 tar 构建器,我知道这听起来很奇怪,但这样做有一个令人信服的理由。有没有一个实用程序或库可以处理这个问题?也许是 Windows API 中一个不起眼的部分?
这看起来很有希望...但是它似乎旨在安装文件夹或类似的东西,而不是“设备”。我确实可以控制数据的写入位置,因此我可以指定任意路径。
For a variety of reasons, revolving around cost of copy and the travails of the Windows filesystem, I need to mount a stream encoder as a drive, so that incoming data can simply be blindly directed at this "drive", aggregated, and encoded, without the source program being any the wiser. This would be basically trivial on Linux, but seems to be an uphill struggle on windows.
Specifically, I'd like to be able to "mount" a tar builder, which I know sounds odd, but there's a compelling reason for doing this. Is there a utility or library that deals with this? Perhaps an obscure part of the Windows API?
This looks promising... but it seems intended to mount folders or similar, rather than "devices." I do have control of where the data is written, so I can specify an arbitrary path.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
拥有虚拟驱动器方面的经验(请参阅我们的虚拟存储产品线),我可以说您的任务需要重新定义。正如评论中所说,Windows 中的驱动器(或者,更好地说,文件系统)应该是文件系统(与 Unix 世界不同),因此它们必须支持某些读取和枚举操作,这不是您所期望的。
您可以做的最接近的可能是内存中的虚拟驱动器,然后将其内容以某种方式传递到您的应用程序。用户将数据拖动到您的驱动器,并在卸载(或使用其他命令)时将驱动器内容传递给其他程序。
我们的多种产品可用于您的任务(请参阅虚拟存储上的 CallbackDisk、Callback 文件系统和 SolFS OS 版本 页),但它们都是商业产品。如果您有一次性或短期任务,您可以使用试用密钥构建一些供您使用的东西。
有一些免费的方法可以完成您的任务,即 Pismo File Mount 和 Dokan,但我不知道它们有多适合。
Having experience with virtual drives (see our Virtual Storage product line) I can say that your task needs some redefining. As said in comments, drives (or, better say, filesystems) in Windows are expected to be namely filesystems (unlike Unix world), and as such they must support certain reading and enumeration operations, which is not something you'd expect.
Probably the closest you can do is a virtual drive in memory whose contents are then passed to your application in some way. The user will drag the data to your drive and on unmounting (or on other command) drive contents are passed to other program.
Several of our products can be used for your task (see CallbackDisk, Callback File System and SolFS OS Edition on Virtual Storage page), yet they are all commercial products. If you have a one-time or short-term task, you can build something for your use with a trial key.
There exist free approaches to your task, namely Pismo File Mount and Dokan, but I don't know how well they fit.