NFS客户端库

NFS客户端库,第1张

概述我正在寻找一些独立的库来访问NFS共享. 我不是在寻找安装共享,只是浏览和访问文件进行阅读. 优先使用简单的API,类似于opendir,scandir,read等的常规POSIX *** 作. 提前致谢! 这是一个链接到这个 NFS client library,但它看起来很有希望,引用: The NFS client handles only one connection at a time, bu 我正在寻找一些独立的库来访问NFS共享.
我不是在寻找安装共享,只是浏览和访问文件进行阅读.

优先使用简单的API,类似于opendir,scandir,read等的常规POSIX *** 作.

提前致谢!

解决方法 这是一个链接到这个 NFS client library,但它看起来很有希望,引用:

The NFS clIEnt handles only one connection at a time,but no connection takes very long. Read requests must be for under 8000 bytes. This has to do with packet size. You don't want to kNow. Once 256 files are open simultaneously -- by all applications,since the clIEnt does not discriminate between requests in any way -- file handles begin to be overwritten. The clIEnt prints an error. If the clIEnt has problems opening sockets it quits gracefully,including returning a message over the socket to the application. The exception is if it is given a bad hostname to mount,in which case it just responds with failure rather than quitting. If the formatting of the code looks messed up,it's because the code was written half on a Mac (tab = 4 spaces).

这是另一个链接,可以解释在sourceforge.net同时打开的256个文件的限制,请参阅sourceforge上常见问题解答的B3 …

编辑:这是一个在Stackoverflow发布的关于递归读取一个可以很容易修改为scandir的目录的问题…

@H_404_30@ 总结

以上是内存溢出为你收集整理的NFS客户端库全部内容,希望文章能够帮你解决NFS客户端库所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/1024492.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存