Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 2.6] make nfsroot compile
@ 2004-09-09 20:53 Peter Buckingham
  0 siblings, 0 replies; only message in thread
From: Peter Buckingham @ 2004-09-09 20:53 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

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

Hi Ralf,

I needed to merge this fix in from Linus's tree to make things work with 
a NFS root. Now I can boot up broadcom's 1250 :-D

peter

Signed-off-by: Peter Buckingham <peter@pantasys.com>

[-- Attachment #2: p --]
[-- Type: text/plain, Size: 587 bytes --]

Index: fs/nfs/nfsroot.c
===================================================================
RCS file: /home/cvs/linux/fs/nfs/nfsroot.c,v
retrieving revision 1.30
diff -u -r1.30 nfsroot.c
--- fs/nfs/nfsroot.c	24 Aug 2004 15:10:14 -0000	1.30
+++ fs/nfs/nfsroot.c	9 Sep 2004 20:53:56 -0000
@@ -495,8 +495,10 @@
 	if (status < 0)
 		printk(KERN_ERR "Root-NFS: Server returned error %d "
 				"while mounting %s\n", status, nfs_path);
-	else
-		nfs_copy_fh(nfs_data.root, fh);
+	else {
+		nfs_data.root.size=fh.size;
+		memcpy(nfs_data.root.data, fh.data, fh.size);
+	}
 
 	return status;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-09 20:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 20:53 [PATCH 2.6] make nfsroot compile Peter Buckingham

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