nfs4j
nfs4j copied to clipboard
Can I use this library as an NFS client?
Sorry if this question is trivial. I went through the README and existing issues, but couldn't figure out if this library can be used as an NFS client to mount an existing NFS share and read/write files to that share. If it can be used to mount, read and write files, could you provide a quick example?
Hi, we do have an nfsv4 client as well, but it is meant to be for testing purposes only and can't be used for something else. However, you are of course welcome to extend it to your needs. To try it, just build the nfs4j and run;
$ mvn clean package
$ java -jar basic-client/target/nfs4j-basic-client-0.17.0-SNAPSHOT-jar-with-dependencies.jar <nfs.server.name>
There is an alternative NFSv3 code from EMC https://github.com/EMCECS/nfs-client-java, which can be a better alternative.