linux-mips
[Top] [All Lists]

[PATCH 2.6] make nfsroot compile

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 2.6] make nfsroot compile
From: Peter Buckingham <peter@pantasys.com>
Date: Thu, 09 Sep 2004 13:53:57 -0700
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040820 Debian/1.7.2-4
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>
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;
 }
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 2.6] make nfsroot compile, Peter Buckingham <=