nfs4j icon indicating copy to clipboard operation
nfs4j copied to clipboard

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

Open ajaysethi8789 opened this issue 4 years ago • 3 comments

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?

ajaysethi8789 avatar Dec 23 '20 09:12 ajaysethi8789

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.

kofemann avatar Dec 23 '20 10:12 kofemann

Can we use this now for client implementation fully now?

TekCoder31 avatar Jan 10 '23 13:01 TekCoder31

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

kofemann avatar Jan 20 '23 16:01 kofemann