nfs4j icon indicating copy to clipboard operation
nfs4j copied to clipboard

NFS Client Problem

Open soulaimenk opened this issue 5 years ago • 1 comments

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

soulaimenk avatar Jan 15 '20 11:01 soulaimenk

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?

kofemann avatar Apr 07 '20 11:04 kofemann