[PATCH] nfsroot.c, kernel 2.6.14.3, do not silently stop parsingon an unknown option
From: Jörn Dreyer
Date: Mon Nov 28 2005 - 09:34:04 EST
Hello,
I think 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 - it is a
trivial patch, nevertheless, I would like to see the patch included to
save others the time ...
Sincerely
JÃrn Dreyer
--- linux-2.6.14.3/fs/nfs/nfsroot.c 2005-11-24 23:10:21.000000000 +0100
+++ linux/fs/nfs/nfsroot.c 2005-11-28 14:50:59.223111632 +0100
@@ -276,6 +277,7 @@
nfs_data.flags |= NFS_MOUNT_NOACL;
break;
default :
+ printk(KERN_WARNING "Root-NFS: unknown option: %s\n", p);
return 0;
}
}