- --- mount_sshnfs.ksh 2023-08-01 18:50:25.000000000 +0200
- +++ mount_sshnfs.ksh 2023-08-07 15:16:34.315545500 +0200
- @@ -474,6 +474,8 @@
- fi
- fi
- + # Cygwin does not set logname
- + [[ ! -v LOGNAME ]] && export LOGNAME="$(logname)"
- c.ssh_control_socket_name="/tmp/mount_sshnfs/mount_sshnfs_ssh-control-socket_logname${LOGNAME}_ppid${PPID}_pid$$"
- @@ -538,21 +540,24 @@
- # Build argument list for mount.nfs ...
- #
- typeset -a mount_args
- - mount_args+=( '-vvv' )
- - mount_args+=( '-t' 'nfs' )
- +# mount_args+=( '-vvv' )
- +# mount_args+=( '-t' 'nfs' )
- for s in "${c.mount_nfs_options[@]}" ; do
- mount_args+=( '-o' "$s" )
- done
- - mount_args+=( '-o' 'vers=4.2' )
- - mount_args+=( '-o' "port=${c.local_forward_port}" )
- +# mount_args+=( '-o' 'vers=4.2' )
- +# mount_args+=( '-o' "port=${c.local_forward_port}" )
- mount_args+=( "localhost:/${c.nfs_server.uripath}" )
- - mount_args+=( "${c.mountpoint}" )
- + #mount_args+=( "${c.mountpoint}" )
- #
- # ... and do the mount
- #
- - mount "${mount_args[@]}"
- + #mount "${mount_args[@]}"
- + /cygdrive/c/Users/roland_mainz/Downloads/ms-nfs41-client-x64/ms-nfs41-client-x64/nfs_mount.exe \
- + -o sec=sys X "${mount_args[@]}"
- (( retval=$? ))
- + (( retval == 0 )) && mount -o bind /cygdrive/x "${c.mountpoint}"
- if (( retval != 0 )) ; then
- #
- @@ -670,7 +675,9 @@
- #
- # Do the unmount
- #
- - umount "${c.mountpoint}"
- + #umount "${c.mountpoint}"
- + /cygdrive/c/Users/roland_mainz/Downloads/ms-nfs41-client-x64/ms-nfs41-client-x64/nfs_mount.exe -d X
- +
- (( retval=$? ))
- if (( retval != 0 )) ; then
mount_sshnfs patch for Cygwin/ms-nfsv41
Posted by Anonymous on Mon 7th Aug 2023 14:31
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.