Package: nfs-kernel-server
Version: 1:1.2.1-3
Severity: important
Tags: patch

The current ‘/etc/init.d/nfs-kernel-server’ program contains the
following test:

=====
# See if our running kernel supports the NFS kernel server
if [ -f /proc/kallsyms ] && ! grep -Eq "[[:space:]]nfsd_open([[:space:]]|$)" 
/proc/kallsyms; then
        log_warning_msg "Not starting $DESC: no support in current kernel."
        exit 0
fi
=====

That test fails on this machine:

=====
$ grep -E "[[:space:]]nfsd_open([[:space:]]|$)" /proc/kallsyms
$ echo $?
1
=====

Hence this package is now unusable on powerpc64 machines.

This is because the symbols are present on powerpc64, but named differently.
The following test succeeds:

=====
$ grep -E "[[:space:]]\.nfsd_open([[:space:]]|$)" /proc/kallsyms
d000000002affd54 t .nfsd_open   [nfsd]
$ echo $?
0
=====

The following patch allows the test to include these symbols:


=== modified file 'init.d/nfs-kernel-server'
--- init.d/nfs-kernel-server    2010-02-02 08:59:11 +0000
+++ init.d/nfs-kernel-server    2010-03-06 06:49:15 +0000
@@ -64,7 +64,7 @@
                do_modprobe nfsd
 
                # See if our running kernel supports the NFS kernel server
-               if [ -f /proc/kallsyms ] && ! grep -Eq 
"[[:space:]]nfsd_open([[:space:]]|$)" /proc/kallsyms; then
+               if [ -f /proc/kallsyms ] && ! grep -Eq 
"[[:space:]](\.)?nfsd_open([[:space:]]|$)" /proc/kallsyms; then
                        log_warning_msg "Not starting $DESC: no support in 
current kernel."
                        exit 0
                fi



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (900, 'stable')
Architecture: powerpc (ppc64)

Kernel: Linux 2.6.32-trunk-powerpc64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nfs-kernel-server depends on:
ii  libblkid1              2.16.2-0          block device id library
ii  libc6                  2.10.2-6          Embedded GNU C Library: Shared lib
ii  libcomerr2             1.41.10-1         common error description library
ii  libgssapi-krb5-2       1.8+dfsg~alpha1-7 MIT Kerberos runtime libraries - k
ii  libgssglue1            0.1-4             mechanism-switch gssapi library
ii  libk5crypto3           1.8+dfsg~alpha1-7 MIT Kerberos runtime libraries - C
ii  libkrb5-3              1.8+dfsg~alpha1-7 MIT Kerberos runtime libraries
ii  libnfsidmap2           0.23-2            An nfs idmapping library
ii  librpcsecgss3          0.19-2            allows secure rpc communication us
ii  libwrap0               7.6.q-18          Wietse Venema's TCP wrappers libra
ii  lsb-base               3.2-23            Linux Standard Base 3.2 init scrip
ii  nfs-common             1:1.2.1-3         NFS support files common to client
ii  ucf                    3.0025            Update Configuration File: preserv

nfs-kernel-server recommends no packages.

nfs-kernel-server suggests no packages.

-- no debconf information

-- 
 \     “If you're a horse, and someone gets on you, and falls off, and |
  `\      then gets right back on you, I think you should buck him off |
_o__)                                        right away.” —Jack Handey |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: Digital signature

Reply via email to