Hi Anibal,

On Wed, Jan 13, 2010 at 02:35:56AM +0000, Aníbal Monsalve Salazar wrote:
> On Tue, Jan 12, 2010 at 06:38:42PM -0700, John Wright wrote:
> 
> >Unfortunately, /proc/fs/nfsd exists regardless of whether the kernel
> >has nfsd support.  (It's created in proc_root_init in fs/root/root.c,
> >so whenever /proc is mounted, it has /proc/fs/nfsd/.)
> >
> >Perhaps the right solution is going back to reading /proc/kallsyms, but
> >looking for a symbol other than init_nfsd.
> 
> What do you think about the following check?
> 
>   if [ -f /proc/kallsyms ] && ! grep -E ' nfsd_.* *\[nfsd\]' /proc/kallsyms; 
> then

Wouldn't that only match when the symbols are provided by the nfsd
module (not built-in)?  Maybe

   if [ -f /proc/kallsyms ] && ! grep -E ' nfsd_open[[:space:]]' 
/proc/kallsyms; then

I assume nfsd_open has been around forever, but I haven't checked...

-- 
+----------------------------------------------------------+
| John Wright <john.wri...@hp.com>                         |
| HP Mission Critical OS Enablement & Solution Test (MOST) |
+----------------------------------------------------------+



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to