dCache / nfs4j

Pure Java NFSv3 and NFSv4.2 implementation
Other
240 stars 76 forks source link

Can nfs4j library be used for NFS Client implementation for 4 and 4.1 versions on prod? #97

Open ajaysethi8789 opened 3 years ago

ajaysethi8789 commented 3 years ago

We want to use NFS protocol to directly connect to the NFS share for accessing the files without mounting,

so, Can nfs4j library be used for NFS Client implementation for 4 and 4.1 versions on production??

If can't, do we have some other alterative solutions for the same which supports version 4 and 4.1?

kofemann commented 3 years ago

The current client code is in alpha state and used for server testing only. Depending on your requirements you might try to adopt it to your needs, but that might involved quite some development effort. Is it metadata operations on you need IO as well? I have an other pet-project https://github.com/kofemann/nfs41-nio2 that aims to provide java NIO2 filesystem provider that talks NFSv4.1, but it's in very early stage.

An alternative might be https://github.com/sahlberg/libnfs.

TekCoder31 commented 1 year ago

Can we use this now for client implementation fully now?

kofemann commented 1 year ago

The client code is still in alpha state as the library is developed with the main focus on server functionality. However, it contains all building blocks for upload and download files. For example, dCache's NFS proxy is implemented based on it

https://github.com/dCache/dcache/blob/master/modules/dcache-nfs/src/main/java/org/dcache/chimera/nfsv41/door/proxy/NfsProxyIo.java