lkml.org 
[lkml]   [2005]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] nfsroot.c, kernel 2.6.14.3, do not silently stop parsing on an unknown option
From
Date
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;
}
}
\
 
 \ /
  Last update: 2005-11-28 15:36    [from the cache]
©2003-2011 Jasper Spaans