tags 561674 - patch
thanks

On Sat, Dec 19, 2009 at 03:17:29PM +0100, Elimar Riesebieter wrote:
> Package: nfs-kernel-server
> Version: 1:1.2.0-4.1
> Severity: important
> Tags: patch
> 
> 
> Test for NFS kernel server support in init script doesn't work for compiled in
> nfs support. The attached patch works for my kernels.

> diff -Naurd nfs-utils-1.2.0~/debian/nfs-kernel-server.init 
> nfs-utils-1.2.0/debian/nfs-kernel-server.init
> --- nfs-utils-1.2.0~/debian/nfs-kernel-server.init    2009-12-19 
> 14:40:41.000000000 +0100
> +++ nfs-utils-1.2.0/debian/nfs-kernel-server.init     2009-12-19 
> 14:43:00.000000000 +0100
> @@ -64,7 +64,7 @@
>               do_modprobe nfsd
>  
>               # See if our running kernel supports the NFS kernel server
> -             if ! [ -d /sys/module/nfsd ]; then
> +             if ! [ -d /proc/fs/nfsd ]; then
>                       log_warning_msg "Not starting $DESC: no support in 
> current kernel."
>                       exit 0
>               fi

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.

-- 
+----------------------------------------------------------+
| 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