butonic.de Rotating Header Image

kernel

4368781

Feb 1 12:51:32 gromit kernel: Cannot read proc file system: 9 – Bad file descriptor.
Feb 1 12:52:03 gromit last message repeated 4368781 times

WTF?!?

Am I a kernel hacker or what?

From: 	akpm@osdl.org
To: 	j.dreyer@butonic.de, mm-commits@vger.kernel.org
Subject: 	+ nfsroot-do-not-silently-stop-parsing-on-an-unknown-option.patch added to -mm tree
Date: 	Tue, 29 Nov 2005 13:39:07 -0800  (22:39 CET)

The patch titled
     nfsroot: do not silently stop parsing on an unknown option
has been added to the -mm tree.  Its filename is
     nfsroot-do-not-silently-stop-parsing-on-an-unknown-option.patch

From: "Jorn Dreyer"
It would be helpful if the kernel did not silently stop parsing
nfs options, but instead warned about any he does not recognize. The
attached patch adds one printk to do just that.

It took me a couple of hours to find my configuration mistake.

Signed-off-by: Andrew Morton
---

 fs/nfs/nfsroot.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN fs/nfs/nfsroot.c~nfsroot-do-not-silently-stop-parsing-on-an-unknown-option fs/nfs/nfsroot.c
--- 25/fs/nfs/nfsroot.c~nfsroot-do-not-silently-stop-parsing-on-an-unknown-option       Tue Nov 29 13:37:35 2005
+++ 25-akpm/fs/nfs/nfsroot.c    Tue Nov 29 13:38:39 2005@@ -275,7 +275,9
@@ static int __init root_nfs_parse(char *n
                        case Opt_noacl:
                                nfs_data.flags |= NFS_MOUNT_NOACL;
                                break;
-                       default :
+                       default:
+                               printk(KERN_WARNING "Root-NFS: unknown "
+                                       "option: %25s\n", p);
                                return 0;
                }
        }
_

Patches currently in -mm which might be from j.dreyer@butonic.de are

nfsroot-do-not-silently-stop-parsing-on-an-unknown-option.patch