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
signature.asc
Description: Digital signature