创建一个联网的虚拟HDD /文件系统 [英] Create a networked virtual HDD/file system

查看:170
本文介绍了创建一个联网的虚拟HDD /文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将如何去创建一个网络虚拟硬盘/文件系统?我的意思是,一旦我安装应用程序,一个新的驱动器(可能需要创建一个驱动程序?)出现在Windows(Mac或Linux?),当你打开驱动器,它显示你的文件存储在服务器的某个地方,可以复制到本地文件系统或添加新文件的方式,你通常会正常的驱动器...

任何现有的库,这样做?如果没有,你可以指点我的任何文学会让我在正确的方向吗?

解决方案

您需要写一个文件系统驱动程序。在Linux上,如果您不想执行内核编程,则可以使用 FUSE ,但要牺牲性能。我不知道Windows或Mac OS的选项。



您已经用Java标签标记了这个问题,但是您更可能必须使用C或C ++。如果你的驱动程序将运行在一个用户空间的进程中(比如通过FUSE),我想你可以加载一个JVM,并编写只是代理Java方法的C函数,但这可能比它的价值更麻烦。

$ b

How would i go about creating a networked virtual HDD/file system? By that I mean, once I install the application a new drive (possibly need to create a driver?) shows up on windows (Mac or Linux?) and when you open the drive it shows you files stored on a server somewhere that can be copied to the local file system or add new files the way you usually would a normal drive...

Any existing libraries that do this? If not, any literature you can point me to that would set me off in the right direction?

解决方案

You'd need to write a filesystem driver. On Linux you can use FUSE if you don't want to do kernel programming, at the cost of performance. I don't know about options for Windows or Mac OS.

You've tagged this question with the Java tag, but you're more likely to have to use C or C++. If your driver will run in a userspace process (such as via FUSE), I guess you could load a JVM and write stub C functions that just proxy to Java methods, but that's probably more trouble than it's worth.

这篇关于创建一个联网的虚拟HDD /文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆