Package: ocfs2-tools
Version: 1.1.5-2
Severity: normal
The Debian package of ocfs2-tools comments out the load calls for the
OCFS2 cluster modules. This screws up the detection of the
/sys/kernel/config mountpoint, as the script expects to find it *before*
the mount happens, not after. What do I mean?
The original code mounted configfs at /config. When configfs went into
the mainline kernel, it was decided that it should live at
/sys/kernel/config. Like debugfs, configfs creates the
/sys/kernel/config mountpoint at load time.
ocfs2-tools does, however, maintain backwards compatibility. It
contains a function, configfs_path(), that returns the new mount
point if it exists. If it does not, the old mount point is returned.
A comment in the function explicitly states:
# Note that this is only valid *after* configfs is loaded
because it cannot detect the existance of /sys/kernel/config until after
the module is loaded.
The upstream o2cb script does the following logical operations:
modprobe configfs
mount configfs $(configfs_path)
Because configfs is already loaded, the /sys/kernel/config path already
exists, and configfs is mounted in the proper location.
The Debian o2cb script comments out the modprobe. It only runs:
mount configfs $(configfs_path)
Here, config_path() runs before the module is loaded. The old mount
point is chosen. Then configfs is loaded via kmod.
Because configfs is mounted at the wrong place, the rest of the script
will fail. It will see /sys/kernel/config and try to use it.
My guess is that the Debian maintainer compiled configfs into vmlinux.
Then, configfs is always loaded, and /sys/kernel/config always exists.
I furthur surmise that the modprobes caused errors, so s/he unwittingly
broke modular users to fix the errors in the non-modular case.
ocfs2-tools, as it currently exists, is not designed for the non-modular
case. All users of our binary packages get them as add-ons to their
kernel, and they are modules. Certainly, the package should learn to
handle non-modular configurations, but breaking the modular case is not
the answer.
Joel
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages ocfs2-tools depends on:
ii debconf [debc 1.4.72 Debian configuration management sy
ii libc6 2.3.6-7 GNU C Library: Shared libraries
ii libcomerr2 1.38+1.39-WIP-2006.04.09-1 common error description library
ii libglib2.0-0 2.10.2-1 The GLib library of C routines
ii libncurses5 5.5-1 Shared libraries for terminal hand
ii libreadline5 5.1-7 GNU readline and history libraries
ii libuuid1 1.38+1.39-WIP-2006.04.09-1 universally unique id library
ocfs2-tools recommends no packages.
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]