public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NFS root broken in 2.6.18-rc2-mm1
@ 2006-08-02  4:50 Andi Kleen
  2006-08-03 14:22 ` Trond Myklebust
  0 siblings, 1 reply; 2+ messages in thread
From: Andi Kleen @ 2006-08-02  4:50 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, trond.myklebust


FYI,

I tried to boot 2.6.18-rc2-mm1 on a nfsroot system with x86-64 defconfig.

Unfortunately it seems to generate lots of random EIO while reading executables 
during the startup sequence, which causes some things to break. Writing
also doesn't seem to work - it complains about EPERM for that.
Not all executables error out, but at least some.

The same setup works fine with mainline 2.6.18-rc*

-Andi

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

* Re: NFS root broken in 2.6.18-rc2-mm1
  2006-08-02  4:50 NFS root broken in 2.6.18-rc2-mm1 Andi Kleen
@ 2006-08-03 14:22 ` Trond Myklebust
  0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2006-08-03 14:22 UTC (permalink / raw)
  To: Andi Kleen; +Cc: akpm, linux-kernel

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

On Wed, 2006-08-02 at 06:50 +0200, Andi Kleen wrote:
> FYI,
> 
> I tried to boot 2.6.18-rc2-mm1 on a nfsroot system with x86-64 defconfig.
> 
> Unfortunately it seems to generate lots of random EIO while reading executables 
> during the startup sequence, which causes some things to break. Writing
> also doesn't seem to work - it complains about EPERM for that.
> Not all executables error out, but at least some.
> 
> The same setup works fine with mainline 2.6.18-rc*

Known issue. The attached patch ought to fix it...

Cheers,
  Trond

[-- Attachment #2: linux-2.6.18-036-nfs-fix_auth_mount.dif --]
[-- Type: message/rfc822, Size: 930 bytes --]

From: Trond Myklebust <Trond.Myklebust@netapp.com>
Subject: No Subject
Date: Thu, 03 Aug 2006 10:21:56 -0400
Message-ID: <1154614916.5774.6.camel@localhost>

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
---

 fs/nfs/super.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index 867b5dc..d744f63 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -471,9 +471,10 @@ static int nfs_validate_mount_data(struc
 						data->version);
 				return -EINVAL;
 			}
-			/* Fill in pseudoflavor for mount version < 5 */
-			data->pseudoflavor = RPC_AUTH_UNIX;
 		case 5:
+			/* Set the pseudoflavor */
+			if (!(data->flags & NFS_MOUNT_SECFLAVOUR))
+				data->pseudoflavor = RPC_AUTH_UNIX;
 			memset(data->context, 0, sizeof(data->context));
 	}
 

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

end of thread, other threads:[~2006-08-03 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-02  4:50 NFS root broken in 2.6.18-rc2-mm1 Andi Kleen
2006-08-03 14:22 ` Trond Myklebust

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox