From: Jorn Dreyer Date: Sun, 8 Jan 2006 09:03:30 +0000 (-0800) Subject: [PATCH] nfsroot: do not silently stop parsing on an unknown option X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21b6bf143d05d77c350d9c6764ae090a877b66ea;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] nfsroot: do not silently stop parsing on an unknown option 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" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfs/nfsroot.c b/fs/nfs/nfsroot.c index 985cc53b8dd5..e897e00c2c9d 100644 --- a/fs/nfs/nfsroot.c +++ b/fs/nfs/nfsroot.c @@ -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; } }