Solaris:在应用程序的处理程序上安装文件系统 [英] Solaris: Mounting a file system on an application's handlers

查看:191
本文介绍了Solaris:在应用程序的处理程序上安装文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

挂载NFS文件系统时,所有数据处理都通过nfs客户端。我怎么能写我自己的处理程序来使用NFS以外的东西?



另一种方法是使用本地NFS服务器,但接收效率非常低

编辑

应该怎么做的例子

通常使用文件系统:应用程序读取/写入文件系统,Solaris会查看它的安装位置,如果是磁盘,则读取/写入磁盘。如果是软件镜像,则读写镜像软件。如果是NFS,则读取和写入远程NFS服务器。我希望它读取和写入到自定义存储软件,而不是上述任何选项。



我们的存储软件用于存储应用程序使用的文件,它是齿轮面向未被存储在数据库中的大量或频繁替换的数据块。它还包括特定于我们公司的某些灵活性。

旧的/现有的应用程序不知道我们的新软件。他们所知道的只是读/写一个目录。我们可以告诉Solaris该目录是在NFS上托管的,然后NFS服务器将转换并连接到存储软件。我们宁愿告诉Solaris关于Solaris从未听说过的新程序,然后教Solaris如何与我们的程序进行交流。

解决方案

您可能需要查看一些CIFS服务器。 Alfresco有JCIFS,它是Java中的CIFS服务器库。它使您可以将资源显示为文件,就好像它们在Windows系统上一样。所以,这意味着程序可以挂载这些CIFS服务器,并且可以通过该机制从数据库发布数据。



我没有使用它,就像你想要做的,也许你可能想要看的东西。

还有FUSE,它允许你创建自定义文件系统在用户模式,而不是破解内核。它适用于Unix和Mac OS,也可能有Windows版本。理论上,这可以做任何事情。



例如,有些实例允许您使用FUSE系统通过SSH安装远程系统。这些往往是用C / C ++编写的。


When mounting an NFS filesystem, all data handling goes through the nfs client. How can I write my own handlers to use something other than NFS?

An alternative would be a localhost NFS server but that seams awfully inefficient

Edit

Example of what should happen

Normally with a filesystem you get: app reads/writes filesystem, Solaris sees where it is mounted and if it is disk then it reads/writes the disk. If it is software mirror it reads and writes to the mirror software. If it it is NFS it reads and writes to a remote NFS server. I want it to read and write to a custom storage software instead of any of the above mentioned options.

Our storage software is for storing files that applications use, it is geared towards large or frequently replaced chunks of data that are not stored in a database. It also includes certain flexibility specific to our company.

Old/existing applications don't know about our new software. All they know to do is read/write a directory. We could tell Solaris that the directory was hosted on NFS and then the NFS server translates and connects to the storage software. We would prefer to tell Solaris about our new program which Solaris has never heard of and then teach Solaris how to talk to our program.

解决方案

You might want to look at some CIFS servers. Alfresco has JCIFS, which is a CIFS server library in Java. It lets you present resources as files, as if they're on a Windows system. So, that means that programs can "mount" these CIFS servers, and you can publish data from your Database via that mechanism.

I have not used it, but that sounds like what you want to do and perhaps something you may want to look in to.

There's also FUSE which lets you create custom file systems in "user mode" rather than having to hack the kernel. It works on Unix and Mac OS, there may be a Windows version as well. This can, in theory, do anything.

For example, there are instances that let you mount a remote system over SSH using a FUSE system. These tend to be written in C/C++.

这篇关于Solaris:在应用程序的处理程序上安装文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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