Linux   发布时间:2022-04-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了NFS客户端库大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我正在寻找一些独立的库来访问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的目录的问题…

大佬总结

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

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

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:客户端