Re: Text-based mount interface breaking non-UDP mounts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steinar H. Gunderson wrote:
Hi,

I've gotten a few bug reports lately that if UDP is blocked at the server,
NFS mounts (even with -o tcp) fail. git bisect shows that the culprit is
the change "Get rid of the "-i" option for mount.nfs[4] and always use the
text-based mount(2) system call for kernel version 2.6.23 and later." -- in
other words, the bug is specific to the text interface. Does anyone know why
this would be the case?
This also fails for me. My setup is through an ssh tunnel
   ssh -L2049:srv:2049 -L2050:srv:2050 -L2051:srv:2051ser@gateway

and I follow that with
   strace mount localhost:/export /mountpoint \
             -o nfsvers=3,port=2049,mountport=2050,...

This hangs in this kernel call
mount("localhost:/export", "/mountpoint", "nfs", MS_NOSUID|MS_NOATIME, "tcp,intr,fg,soft,nfsvers=3,port=2049,mountport=2050,nolock,addr=127.0.0.1"

This hack makes it work for me again:

diff -ru nfs-utils-1.1.2/utils/mount/mount.c nfs-utils-1.1.2-changed/utils/mount/mount.c
--- nfs-utils-1.1.2/utils/mount/mount.c	2008-03-14 15:46:29 +0000
+++ nfs-utils-hack/utils/mount/mount.c	2008-04-26 15:49:55 +0100
@@ -191,7 +191,8 @@
 		nfs_mount_data_version = NFS_MOUNT_VERSION;
 	else
 		if (kernel_version > MAKE_VERSION(2, 6, 22))
-			string++;
+			string=0;
 }

 static void print_one(char *spec, char *node, char *type, char *opts)

Frank

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux