Daniel-Abrecht / fuse-nfs-crossbuild-scripts

fuse-nfs for windows using dokany
MIT License
41 stars 5 forks source link

NFS v4? #7

Open KodoGit opened 2 years ago

KodoGit commented 2 years ago

Hi. Does this port supports nfs v4? I try to connect win 19 + dokan 1.5.0.3 with your latest version (or that suitable for my dokan). And they both return

Failed to mount nfs share : mount_cb: NFS4: SETCLIENTID (path /xxx) failed with NFS4ERR_MINOR_VERS_MISMATCH(-5)

when I set "?version=4" I connect to ceph ganesha with nfs up to 4.2 support

kstorbakken commented 6 months ago

I know both this issue and https://github.com/Daniel-Abrecht/fuse-nfs-crossbuild-scripts/issues/5 are essentially the same and are old as heck. I would like to report to anyone who stumbles across this project that NFSv4 is working just fine these days with the latest compiled packages.

Downloaded https://github.com/Daniel-Abrecht/fuse-nfs-crossbuild-scripts/releases/download/libnfs%3Dlibnfs-5.0.3_fuse-nfs%3Dmaster_dokany%3Dv2.0.6.1000/x86_64-w64-mingw32.zip which corresponds to the version of Dokany I have installed.

Ran this command to mount: fuse-nfs.exe -n nfs://ip_addr:/mnt/disks/disk2?version=4 -m Y Which mounted the disk as Y:\ with no issues. From there it's easy enough to automate disk mounting using something like nssm. The speeds I'm getting exceeded what I thought I'd get, saturating my gigabit link.

I noticed that running the package against the wrong version of Dokany would give either zero output or nfs service start errors.

Thanks for providing this awesome project. Cheers!