-
Notifications
You must be signed in to change notification settings - Fork 3
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
fails when cp to mounted dir #3
Comments
Hi. This can be the result of migration to java 16 FFI, some methods doesn't work as expected. Can you please check with last pre java 16 commit 12a71b9? |
Thanks for reply. I have use the JDK-16, it version is as following: java 16.0.1 2021-04-20 and I have recognized that, when I use centos-7.6 as nfs client, this can work fine. When I use centos-8.2 as nfs client, [root@app05 vfs4j]# mount.nfs4 -V this will get the I/O error
|
This may caused by the server not replied the LOOKUP operation properly? |
Hm. Sounds weird. I will check. Did you have tried earlier commit? |
I tried with 300c918, it seems work fine. |
Great. The warning is ok. It tells you that the client have tried to use nfsv4.2 before switching to v4.1. |
Thanks for looking at it. Yeh, the FFI interface it still work-in-progress. To be honest, I didn't expect that someone will use vfs4j. Shall I branch it at pre-java16 commit? Or may be add a stable tag... |
I think Java-16 is OK, except some interfaces, such as MemorySegment, may behave in unknown way (I am not sure). |
when I execute
cp /tmp/nfs-utils-2.5.4.tar.xz /mnt1/
It say:
cp: cannot stat '/mnt1/nfs-utils-2.5.4.tar.xz': Input/output error
I have tracked the execution path, It fails on LOOKUP operation, this operation further call
the lookup method in LocalVFS, method call sequence is as following:
lookup->path2fh->fNameToHandleAt.invokeExact(fd, str.address(), bytes.address(), mntId.address(), flags)
the fNameToHandleAt returns -1
therefor the code fails on checkError(rc == 0), because of the target file nfs-utils-2.5.4.tar.xz dose not exists.
Are there any idea to fix this?
The text was updated successfully, but these errors were encountered: