dCache / nfs4j

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

NFS Client Problem #85

Open soulaimenk opened 4 years ago

soulaimenk commented 4 years ago

First, Thank you for the library. I'm trying to implement an NFS Client based on your dcache/nfs/v4/client example ( It's just for test purpose). My question is, how can I mount on disk the remote directory, like when we mount with Ubuntu command: mount -t nfs 192.168.1.10:/media/user/ /mnt/media_rw/remote

Logs after I start the Client: System.out: Connected to: Mr. X System.out: pNFS MDS: true System.out: pNFS DS: false System.out: Using slots: 159 System.out: server lease time: 90 sec. System.out: root fh = 0100010000000000

kofemann commented 4 years ago

Hi,

I have misses your issue. Sorry. In general, the client is there to quick add functionality that is not available with the current kernel clients or to mimic a specific behavior. IOW, it's not intended to be used as a real file system client.

One can try to implement a java NIO.2 file system interface and hook it into applications or mount with fuse-like driver. I started to play with an idea while ago: https://github.com/kofemann/nfs41-nio2

BTW, can you describe your case? Do you really need a userspace java client?