Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFS Client Problem #85

Open
soulaimenk opened this issue Jan 15, 2020 · 1 comment
Open

NFS Client Problem #85

soulaimenk opened this issue Jan 15, 2020 · 1 comment

Comments

@soulaimenk
Copy link

soulaimenk commented Jan 15, 2020

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
Copy link
Member

kofemann commented Apr 7, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants