netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NFS mount gives ENETDOWN in -git15
@ 2007-07-21 13:31 Andi Kleen
  2007-07-22 17:55 ` Trond Myklebust
  2007-07-22 23:10 ` Yinghai Lu
  0 siblings, 2 replies; 3+ messages in thread
From: Andi Kleen @ 2007-07-21 13:31 UTC (permalink / raw)
  To: netdev, trond.myklebust; +Cc: linux-kernel


I tried to mount another nfs mount on a system running with nfsroot.
But I get

# mount basil:/home /basil/home/
mount: Network is down

The network is not down of course, the system is happily running with nfs root from that
server. Userland is older SUSE 10.0

Excerpt from strace mount:

-Andi

socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
bind(3, {sa_family=AF_INET, sin_port=htons(938), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
bind(3, {sa_family=AF_INET, sin_port=htons(939), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(900), sin_addr=inet_addr("10.23.204.1")}, 16) = 0
uname({sys="Linux", node="bigfoot", ...}) = 0
geteuid()                               = 0
getegid()                               = 0
getgroups(0, NULL)                      = 1
getgroups(1, [0])                       = 1
gettimeofday({1185029510, 644658}, NULL) = 0
write(3, "\200\0\0Td*\362{\0\0\0\0\0\0\0\2\0\1\206\245\0\0\0\2\0"..., 88) = 88
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, 20000) = 1
read(3, "\200\0\0<d*\362{\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4000) = 64
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 5
bind(5, {sa_family=AF_INET, sin_port=htons(939), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
bind(5, {sa_family=AF_INET, sin_port=htons(940), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 6
bind(6, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
connect(6, {sa_family=AF_INET, sin_port=htons(111), sin_addr=inet_addr("10.23.204.1")}, 16) = 0
write(6, "\200\0\0008i \25\301\0\0\0\0\0\0\0\2\0\1\206\240\0\0\0"..., 60) = 60
poll([{fd=6, events=POLLIN, revents=POLLIN}], 1, 60000) = 1
read(6, "\200\0\0\34i \25\301\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 400) = 32
close(6)                                = 0
uname({sys="Linux", node="bigfoot", ...}) = 0
close(3)                                = 0
close(3)                                = -1 EBADF (Bad file descriptor)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
mount("basil:/home", "/basil/home/", "nfs", MS_POSIXACL|MS_ACTIVE|MS_NOUSER|0xec0000, 0x51ba60) = -1 ENETDOWN (Network is down)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: NFS mount gives ENETDOWN in -git15
  2007-07-21 13:31 NFS mount gives ENETDOWN in -git15 Andi Kleen
@ 2007-07-22 17:55 ` Trond Myklebust
  2007-07-22 23:10 ` Yinghai Lu
  1 sibling, 0 replies; 3+ messages in thread
From: Trond Myklebust @ 2007-07-22 17:55 UTC (permalink / raw)
  To: Andi Kleen; +Cc: netdev, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

On Sat, 2007-07-21 at 15:31 +0200, Andi Kleen wrote:
> I tried to mount another nfs mount on a system running with nfsroot.
> But I get
> 
> # mount basil:/home /basil/home/
> mount: Network is down
> 
> The network is not down of course, the system is happily running with nfs root from that
> server. Userland is older SUSE 10.0

Does Al's patch help in any way?

Cheers
  Trond


[-- Attachment #2: Attached message - [PATCH] fix broken handling of port=... in NFS option parsing --]
[-- Type: message/rfc822, Size: 2417 bytes --]

From: Al Viro <viro@ftp.linux.org.uk>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chuck Lever <chuck.lever@oracle.com>, Trond Myklebust <Trond.Myklebust@netapp.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] fix broken handling of port=... in NFS option parsing
Date: Sun, 22 Jul 2007 10:59:06 +0100
Message-ID: <20070722095906.GX21668@ftp.linux.org.uk>

	Obviously broken on little-endian; fortunately, the option is
not frequently used...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index b34b7a7..b2a851c 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -732,7 +732,7 @@ static int nfs_parse_mount_options(char *raw,
 				return 0;
 			if (option < 0 || option > 65535)
 				return 0;
-			mnt->nfs_server.address.sin_port = htonl(option);
+			mnt->nfs_server.address.sin_port = htons(option);
 			break;
 		case Opt_rsize:
 			if (match_int(args, &mnt->rsize))

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: NFS mount gives ENETDOWN in -git15
  2007-07-21 13:31 NFS mount gives ENETDOWN in -git15 Andi Kleen
  2007-07-22 17:55 ` Trond Myklebust
@ 2007-07-22 23:10 ` Yinghai Lu
  1 sibling, 0 replies; 3+ messages in thread
From: Yinghai Lu @ 2007-07-22 23:10 UTC (permalink / raw)
  To: Andi Kleen; +Cc: netdev, trond.myklebust, linux-kernel

On 7/21/07, Andi Kleen <ak@suse.de> wrote:
>
> I tried to mount another nfs mount on a system running with nfsroot.
> But I get
>
> # mount basil:/home /basil/home/
> mount: Network is down
>
> The network is not down of course, the system is happily running with nfs root from that
> server. Userland is older SUSE 10.0
>
> Excerpt from strace mount:
>
> -Andi
>

What is your CONFIG_NETDEVICES_MULTIQUEUE in .config?

YH

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-07-22 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-21 13:31 NFS mount gives ENETDOWN in -git15 Andi Kleen
2007-07-22 17:55 ` Trond Myklebust
2007-07-22 23:10 ` Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).