]> err.no Git - linux-2.6/commitdiff
[PATCH] nfsroot: do not silently stop parsing on an unknown option
authorJorn Dreyer <j.dreyer@butonic.de>
Sun, 8 Jan 2006 09:03:30 +0000 (01:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:13:57 +0000 (20:13 -0800)
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.

Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfs/nfsroot.c

index 985cc53b8dd5b3a49960a7642a48f4f251e9ac99..e897e00c2c9d3c49eb6c1c954df11cceefce392c 100644 (file)
@@ -275,7 +275,9 @@ static int __init root_nfs_parse(char *name, char *buf)
                        case Opt_noacl:
                                nfs_data.flags |= NFS_MOUNT_NOACL;
                                break;
-                       default : 
+                       default:
+                               printk(KERN_WARNING "Root-NFS: unknown "
+                                       "option: %s\n", p);
                                return 0;
                }
        }