[kernel] r9861 - in dists/trunk/redhat-cluster/redhat-cluster: . debian debian/patches debian/po

Frederik Schüler fs at alioth.debian.org
Sun Dec 2 20:55:14 UTC 2007


Author: fs
Date: Sun Dec  2 20:55:14 2007
New Revision: 9861

Log:
Initial import of redhat-cluster v2 debian tree


Added:
   dists/trunk/redhat-cluster/redhat-cluster/
   dists/trunk/redhat-cluster/redhat-cluster/debian/
   dists/trunk/redhat-cluster/redhat-cluster/debian/README.Debian
   dists/trunk/redhat-cluster/redhat-cluster/debian/TODO
   dists/trunk/redhat-cluster/redhat-cluster/debian/changelog
   dists/trunk/redhat-cluster/redhat-cluster/debian/cman.config
   dists/trunk/redhat-cluster/redhat-cluster/debian/cman.default
   dists/trunk/redhat-cluster/redhat-cluster/debian/cman.init
   dists/trunk/redhat-cluster/redhat-cluster/debian/cman.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/cman.preinst
   dists/trunk/redhat-cluster/redhat-cluster/debian/cman.templates
   dists/trunk/redhat-cluster/redhat-cluster/debian/compat
   dists/trunk/redhat-cluster/redhat-cluster/debian/control
   dists/trunk/redhat-cluster/redhat-cluster/debian/copyright
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.docs
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.init
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.links
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.dirs
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.docs
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.init
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.links
   dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.config
   dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.init
   dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.config
   dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.default
   dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.init
   dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/libcman-dev.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/libcman-dev.links
   dists/trunk/redhat-cluster/redhat-cluster/debian/libcman2.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/libcman2.links
   dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm-dev.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm-dev.links
   dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm2.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm2.links
   dists/trunk/redhat-cluster/redhat-cluster/debian/patches/
   dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00_fix_gfs2_quota.dpatch   (contents, props changed)
   dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00list
   dists/trunk/redhat-cluster/redhat-cluster/debian/po/
   dists/trunk/redhat-cluster/redhat-cluster/debian/po/POTFILES.in
   dists/trunk/redhat-cluster/redhat-cluster/debian/po/templates.pot
   dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.default
   dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.docs
   dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.init
   dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.install
   dists/trunk/redhat-cluster/redhat-cluster/debian/rules   (contents, props changed)

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/README.Debian
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/README.Debian	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,54 @@
+Packaging notes
+
+The documentation provided by upstream is not the best around the world
+so here is a collections of little useful info:
+
+Administrator's Guide:
+http://www.redhat.com/docs/manuals/csgfs/browse/rh-gfs-en/
+
+Configuration examples are located in /usr/share/doc/gfs-tools/examples/
+
+rgmanager error codes are located in /usr/share/doc/rgmanager/errors.txt
+
+KNOWN ISSUES
+------------
+
+NOTE that you will need a minimal valid configuration before you will be
+able to run the GUI or you might see horrible things like this one:
+
+root at beech:~# system-config-cluster
+Traceback (most recent call last):
+  File "/usr/sbin/system-config-cluster", line 540, in ?
+    runFullGUI()
+  File "/usr/sbin/system-config-cluster", line 522, in runFullGUI
+    baseapp = basecluster(glade_xml, app)
+  File "/usr/sbin/system-config-cluster", line 108, in __init__
+    self.model_builder = ModelBuilder(1, CLUSTER_CONF_PATH)
+  File "/usr/share/system-config-cluster/ModelBuilder.py", line 133, in __init__
+    self.resolve_fence_instance_types()
+  File "/usr/share/system-config-cluster/ModelBuilder.py", line 284, in
+resolve_fence_instance_types
+    nodes = self.getNodes()
+  File "/usr/share/system-config-cluster/ModelBuilder.py", line 406, in getNodes
+    return self.clusternodes_ptr.getChildren()
+AttributeError: 'NoneType' object has no attribute 'getChildren'
+
+------------
+
+It appears that in some hw combinations the kernel is not fast enough to handle
+cman heartbeat properly. This results in cman kicking out nodes during heavy I/O
+operations.
+
+The only known workaround is to increase the cman timeout using FOR EXAMPLE:
+
+echo $timeout_in_seconds > /proc/cluster/config/cman/deadnode_timeout
+
+The default is 21 seconds.
+
+It is important to understand that higher values of timeout will expose the cluster
+to other problems, like for example a node is not kicked out from the cluster fast
+enough and it might cause more damage than expected.
+
+NOTE that the value must never be higher than the reboot time of the node. Otherwise
+the cluster will refuse the node to rejoin the quorum and manual kick has to be done
+by the administrator.

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/TODO
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/TODO	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,3 @@
+Merge cman.init changes from upstream to handle xen.
+Review *.init. 
+check scsi_reserve stuff

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/changelog
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/changelog	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,6 @@
+redhat-cluster (2.20071022-1) UNRELEASED; urgency=low
+
+  * First Debian release of the redhat cluster suite v2, based on the
+    packaging by Fabio M. Di Nitto <fabbione at fabbione.net>
+
+ -- Frederik Schüler <fs at debian.org>  Sun, 02 Dec 2007 17:14:52 +0100

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/cman.config
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/cman.config	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.0; then
+	db_fget cman/upgrade-from-old seen_in_2.0_upgrade
+	if [ "$RET" = false ]; then
+		db_fset cman/upgrade-from-old seen false
+		db_input critical cman/upgrade-from-old || CODE=$?
+		if [ "$CODE" = 30 ]; then
+			# non-interactive upgrade. Better die here than sorry.
+			exit 1
+		fi
+		db_go || true
+		db_fset cman/upgrade-from-old seen_in_2.0_upgrade true
+	fi
+fi
+
+exit 0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/cman.default
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/cman.default	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,6 @@
+# CLUSTERNAME=""
+# NODENAME=""
+# USE_CCS="yes"
+# CLUSTER_JOIN_TIMEOUT=300
+# CLUSTER_JOIN_OPTIONS=""
+# CLUSTER_SHUTDOWN_TIMEOUT=60

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/cman.init
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/cman.init	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,145 @@
+#!/bin/bash
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+NAME=cman
+DESC="cluster manager"
+
+test -x /usr/sbin/cman_tool || exit 0
+
+# ccsd
+
+CCSD_OPTS=""
+
+# cman
+
+CMAN_CLUSTER_TIMEOUT=120
+CMAN_QUORUM_TIMEOUT=0
+CMAN_SHUTDOWN_TIMEOUT=60
+
+set -e
+
+load_modules() {
+	modprobe configfs 2>&1 || true
+	modprobe dlm 2>&1 || true
+	modprobe lock_dlm 2>&1 || true
+}
+
+mount_configfs() {
+	if ! awk '{ print $2" "$3 }' /etc/mtab | grep "/sys/kernel/config configfs" > /dev/null ; then
+		mount -t configfs none /sys/kernel/config
+	fi
+}
+
+umount_configfs() {
+	if awk '{ print $2" "$3 }' /etc/mtab | grep "/sys/kernel/config configfs" > /dev/null ; then
+		umount /sys/kernel/config
+	fi
+}
+
+case "$1" in
+  start)
+	echo "Starting $DESC:"
+	echo -n " Loading kernel modules:"
+	load_modules
+	echo " done"
+	echo -n " Mounting config filesystem:"
+	mount_configfs
+	echo " done"
+	echo -n " Starting cluster configuration system:"
+	start-stop-daemon --start --quiet --pidfile /var/run/cluster/ccsd.pid --exec /usr/sbin/ccsd -- $CCSD_OPTS
+	sleep 1
+	echo " done"
+	echo -n " Joining cluster:"
+	cman_tool -t $CMAN_CLUSTER_TIMEOUT -w join $cman_join_opts
+	echo " done"
+	if [ $CMAN_QUORUM_TIMEOUT -gt 0 ]; then
+		echo -n " Waiting quorum timeout ($CMAN_QUORUM_TIMEOUT seconds):"
+		cman_tool -t $CMAN_QUORUM_TIMEOUT -q wait
+		echo " done"
+	fi
+	echo -n " Starting daemons:"
+	start-stop-daemon --start --quiet --pidfile /var/run/groupd.pid --exec /usr/sbin/groupd
+	echo -n " groupd"
+	start-stop-daemon --start --quiet --pidfile /var/run/fenced.pid --exec /usr/sbin/fenced
+	echo -n " fenced"
+	start-stop-daemon --start --quiet --pidfile /var/run/dlm_controld.pid --exec /usr/sbin/dlm_controld
+	echo -n " dlm_controld"
+	start-stop-daemon --start --quiet --pidfile /var/run/gfs_controld.pid --exec /usr/sbin/gfs_controld
+	echo " gfs_controld"
+	echo -n " Joining fence domain:"
+	fence_tool join
+	echo " done"
+	echo -n " Starting Quorum Disk daemon:"
+	start-stop-daemon --start --quiet --pidfile /var/run/qdiskd.pid --exec /usr/sbin/qdiskd -- -Q
+	echo " done"
+	;;
+  stop)
+	echo "Stopping $DESC"
+	echo -n " Stopping Quorum Disk daemon:"
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/qdiskd.pid --exec /usr/sbin/qdiskd
+	rm -f /var/run/qdiskd.pid
+	echo " done"
+	echo -n " Leaving fence domain:"
+	fence_tool -w leave &
+	for sec in $(seq 1 10); do
+		if pidof fence_tool &> /dev/null; then
+			if [ "$sec" = 10 ]; then
+				kill $(pidof fence_tool) > /dev/null 2>&1
+			else
+				sleep 1
+			fi
+		fi
+	done
+	echo " done"
+	echo -n " Stopping daemons:"
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/gfs_controld.pid --exec /usr/sbin/gfs_controld
+	rm -f /var/run/gfs_controld.pid
+	echo -n " gfs_controld"
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/dlm_controld.pid --exec /usr/sbin/dlm_controld
+	rm -f /var/run/dlm_controld.pid
+	echo -n " dlm_controld"
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/fenced.pid --exec /usr/sbin/fenced
+	rm -f /var/run/fenced.pid
+	echo -n " fenced"
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/groupd.pid --exec /usr/sbin/groupd
+	rm -f /var/run/groupd.pid
+	echo " groupd"
+	echo -n " Leaving the cluster:"
+	cman_tool -t $CMAN_SHUTDOWN_TIMEOUT -w leave || true
+	echo " done"
+	echo -n " Stopping cluster configuration system:"
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/cluster/ccsd.pid --exec /usr/sbin/ccsd
+	rm -f /var/run/cluster/$NAME.pid
+	echo " done"
+	echo -n " Unmounting config filesystem:"
+	umount_configfs
+	echo " done"
+	;;
+  restart)
+	$0 stop 
+	sleep 1
+	$0 start
+	;;
+  remove)
+	echo -n "Stopping $DESC, removing node from cluster"
+	cman_tool leave remove
+	echo "."
+	;;
+  force-reload)
+	$0 force-stop
+	sleep 1
+	$0 start
+	;;
+  force-stop)
+	echo -n "Stopping $DESC, force"
+	cman_tool leave force
+	echo "."
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|remove|restart|force-reload|force-stop}" >&2
+	exit 1
+	;;
+esac
+
+exit 0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/cman.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/cman.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,26 @@
+usr/sbin/cman_tool
+usr/sbin/mkqdisk
+usr/sbin/qdiskd
+usr/share/man/man5/qdisk.5
+usr/share/man/man8/qdiskd.8
+usr/share/man/man8/mkqdisk.8
+usr/share/man/man5/cman.5
+usr/share/man/man8/cman_tool.8
+usr/lib/openais/lcrso/service_cman.lcrso
+usr/sbin/ccsd
+usr/sbin/ccs_test
+usr/sbin/ccs_tool
+usr/share/man/man5/cluster.conf.5
+usr/share/man/man8/ccsd.8
+usr/share/man/man8/ccs_test.8
+usr/share/man/man8/ccs_tool.8
+usr/share/man/man8/dlm_controld.8
+usr/share/man/man8/gfs_controld.8
+usr/share/man/man8/group_tool.8
+usr/share/man/man8/groupd.8
+usr/sbin/dlm_controld
+usr/sbin/gfs_controld
+usr/sbin/group_tool
+usr/sbin/groupd
+usr/sbin/fence*
+usr/share/man/man8/fence*

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/cman.preinst
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/cman.preinst	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+db_version 2.0
+
+if [ -n "$2" ] && dpkg --compare-versions "$2" lt 2.0; then
+	db_get cman/upgrade-from-old
+	ANSWER="$RET"
+	db_fset cman/upgrade-from-old seen_in_2.0_upgrade false
+	if [ "$ANSWER" = false ]; then
+		exit 1
+	fi
+fi
+
+exit 0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/cman.templates
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/cman.templates	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,13 @@
+Template: cman/upgrade-from-old
+Type: boolean
+Default: false
+_Description: Cluster Manager Upgrade
+ An older version of cman installed on the system.
+ .
+ The version that is going to be installed is *NOT* compatible with the old
+ one and will break the cluster horribly if not upgraded properly.
+ .
+ Check https://wiki.ubuntu.com/UpgradingClusterProcedure for the latest
+ instructions on how to proceed.
+ .
+ Continue with the upgrade?

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/compat
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/compat	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+4

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/control
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/control	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,138 @@
+Source: redhat-cluster
+Section: admin
+Priority: optional
+Maintainer: Debian Kernel Team <debian-kernel at lists.debian.org>
+Uploaders: Bastian Blank <waldi at debian.org>, Frederik Schüler <fs at debian.org>
+Standards-Version: 3.7.2.2
+Build-Depends: dpatch, debhelper (>= 4.2.28), libxml2-dev, libncurses5-dev, libopenais-dev (>= 0.82-1), libvolume-id-dev (>=  0.105-4), linux-libc-dev (>= 2.6.22-6), libvirt-dev (>= 0.3.0) [i386], libnss3-dev [i386], libnspr4-dev [i386]
+Build-Conflicts: libccs-dev, libcman-dev (<= 2.0), libdlm-dev (<= 2.0), libcman2, libdlm2
+
+Package: redhat-cluster-suite
+Section: admin
+Priority: optional
+Architecture: all
+Depends: cman, gfs-tools, gfs2-tools, gnbd-client, gnbd-server, rgmanager, clvm
+Description: red hat cluster suite (meta package)
+ The only scope for this package is to install the full Red Hat Cluster Suite
+ in one shot. It is safe to remove it.
+
+Package: cman
+Architecture: any
+Section: admin
+Pre-Depends: debconf | debconf-2.0
+Depends: ${shlibs:Depends}, ${misc:Depends}, openais (>= 0.82-0ubuntu1), gfs-modules
+Conflicts: magma, libmagma1, libmagma-dev, ccs, fence, libiddev-dev, fence-gnbd, gulm, libgulm1, libgulm-dev, magma-plugins
+Replaces: ccs, fence, fence-gnbd
+Description: cluster manager
+ CMAN is a symmetric general-purpose cluster manager. It consists of
+ a connection manager that handles cluster membership management,
+ messaging among the cluster nodes, event notification, quorum and
+ state transitions. Another part of CMAN is a service manager that
+ handles service groups.
+ .
+ This package contains only userspace tools for controlling the actual
+ cluster manager.
+
+Package: libcman2
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: cluster manager - libraries
+ cman provides a general purpose, openais based, cluster manager.
+ .
+ This package contains the client libraries.
+
+Package: libcman-dev
+Section: libdevel
+Architecture: any
+Depends: libcman2 (= ${Source-Version})
+Description: cluster manager - development files
+ cman provides a general purpose, openais based, cluster manager.
+ .
+ This package contains the files needed for developing applications.
+
+Package: libdlm2
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: distributed lock manager - library
+ DLM is a symmetric general-purpose distributed lock manager. It is
+ used for example by GFS and the distributed volume manager.
+ .
+ This is the client library for applications using the lock manager.
+ The lock manager itself is a kernel module.
+
+Package: libdlm-dev
+Section: libdevel
+Architecture: any
+Depends: libdlm2 (= ${Source-Version})
+Description: distributed lock manager - development files
+ DLM is a symmetric general-purpose distributed lock manager. It is
+ used for example by GFS and the distributed volume manager.
+ .
+ This package contains the files needed for developing applications
+ that use the lock manager.
+
+Package: gfs-tools
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, psmisc, gfs-modules, gfs2-tools
+Section: admin
+Description: global file system tools 
+ The Global File System allows a cluster of machines to concurrently access
+ shared storage hardware like SANs or iSCSI and network block devices. GFS
+ can be deployed to build high available services without the single point
+ of failure a file server would be.
+ .
+ This package contains userspace tools for creating and managing global
+ file systems. GFS itself is a set of kernel modules.
+ .
+ Note: the package requires gfs2-tools installed and it's known to work fine
+ even if GFS2 is highly experimental and *MUST NOT* be used in production
+ enviroment yet.
+
+Package: gfs2-tools
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, psmisc, gfs-modules
+Section: admin
+Description: global file system 2 tools (EXPERIMENTAL)
+ The Global File System 2 allows a cluster of machines to concurrently access
+ shared storage hardware like SANs or iSCSI and network block devices. GFS
+ can be deployed to build high available services without the single point
+ of failure a file server would be.
+ .
+ This package contains userspace tools for creating and managing global
+ file systems. GFS2 itself is a set of kernel modules.
+ .
+ GFS2 *MUST NOT* be used in production enviroment yet.
+
+Package: gnbd-client
+Section: admin
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, gfs-modules
+Recommends: fence-gnbd (= ${Source-Version})
+Description: global network block device - client tools
+ GNBD allows to usage block devices over the network. It is a modified
+ version of the linux network block device for the use within a cluster
+ environment.
+ .
+ This package contains userspace tools for running GNBD clients.
+
+Package: gnbd-server
+Section: admin
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, gfs-modules
+Recommends: fence-gnbd (= ${Source-Version})
+Description: global network block device - server tools
+ GNBD allows to usage block devices over the network. It is a modified
+ version of the linux network block device for the use within a cluster
+ environment.
+ .
+ This package contains userspace tools for running GNBD servers.
+
+Package: rgmanager
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, cman (= ${Source-Version}), iproute, iputils-arping, iputils-ping, nfs-kernel-server, nfs-common
+Conflicts: nfs-user-server
+Description: clustered resource group manager
+ Resource Group Manager provides high availability of critical server
+ applications in the event of planned or unplanned system downtime.

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/copyright
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/copyright	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,35 @@
+This is the Ubuntu / Debian GNU/Linux prepackaged version of the
+RedHat Cluster Suite.
+
+Mainly packaged by Fabio M. Di Nitto <fabbione at ubuntu.com>, a lot
+of people have been contributing to this package in several different
+areas/bits. In non-particular order:
+
+- Frederik Shueler <fs at lowpingbastards.de>
+  several patches and testing.
+- Bastian Blank <waldi at debian.org>
+  for all his packages, init scripts, build rules.
+- Adam Conrad <adconrad at ubuntu.com>
+  for some init script fixes and portability patches.
+- A really great and responsive upstream.
+
+Upstream: http://sources.redhat.com/cluster/
+
+Based on RHEL4U1 CVS branch.
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; version 2 dated June, 1991.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
+
+On Ubuntu / Debian GNU/Linux systems, the complete text of the GNU
+General Public License can be found in `/usr/share/common-licenses/GPL'.

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.docs
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.docs	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,2 @@
+doc/min-gfs.txt
+doc/usage.txt

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.init
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.init	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,84 @@
+#!/bin/bash
+
+#
+# This script's behavior is modeled closely after the netfs script.  
+#
+GFSFSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
+GFSMTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs" && $2 != "/" { print $2 }' /proc/mounts)
+
+# See how we were called.
+case "$1" in
+  start)
+        if [ -n "$GFSFSTAB" ] 
+	then
+		echo -n "Mounting GFS filesystems: "
+		mount -a -t gfs
+		echo "done."
+	fi
+	;;
+
+  stop)
+  	if [ -n "$GFSMTAB" ] 
+	then
+		sig=
+		retry=6
+		remaining=`LC_ALL=C awk '!/^#/ && $3 == "gfs" && $2 != "/" {print $2}' /proc/mounts`
+		while [ -n "$remaining" -a "$retry" -gt 0 ]
+		do
+			echo -n "Unmounting GFS filesystems: "
+			umount -a -t gfs
+
+			if [ $retry -eq 0 ] 
+			then
+				echo "failed"
+				echo -n "Unmounting GFS filesystems (lazy): "
+				umount -l -a -t gfs
+				break
+			fi
+
+			sleep 2
+			remaining=`LC_ALL=C awk '!/^#/ && $3 == "gfs" && $2 != "/" {print $2}' /proc/mounts`
+			[ -z "$remaining" ] && break
+			fuser -k -m $sig $remaining >/dev/null
+			sleep 10
+			retry=$(($retry - 1))
+			sig=-9
+		done
+		echo "done"
+	fi
+
+	modprobe -r gfs 2>&1 || true
+	modprobe -r lock_dlm 2>&1 || true
+	modprobe -r lock_nolock 2>&1 || true
+	;;
+
+  status)
+	if [ -f /proc/mounts ]
+	then
+	        [ -n "$GFSFSTAB" ] && {
+		     echo "Configured GFS mountpoints: "
+		     for fs in $GFSFSTAB; do echo $fs ; done
+		}
+		[ -n "$GFSMTAB" ] && {
+                      echo "Active GFS mountpoints: "
+		      for fs in $GFSMTAB; do echo $fs ; done
+		}
+	else
+		echo "/proc filesystem unavailable"
+	fi
+	;;
+
+  restart)
+	$0 stop
+	$0 start
+	;;
+
+  reload)
+        $0 start
+	;;
+  *)
+	echo $"Usage: $0 {start|stop|restart|reload|status}"
+	exit 1
+esac
+
+exit 0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,18 @@
+usr/sbin/fsck.gfs
+usr/sbin/gfs_debug
+usr/sbin/gfs_edit
+usr/sbin/gfs_fsck
+usr/sbin/gfs_grow
+usr/sbin/gfs_jadd
+usr/sbin/gfs_mkfs
+usr/sbin/gfs_quota
+usr/sbin/gfs_tool
+usr/sbin/mkfs.gfs
+usr/share/man/man8/gfs.8
+usr/share/man/man8/gfs_fsck.8
+usr/share/man/man8/gfs_grow.8
+usr/share/man/man8/gfs_jadd.8
+usr/share/man/man8/gfs_mkfs.8
+usr/share/man/man8/gfs_mount.8
+usr/share/man/man8/gfs_quota.8
+usr/share/man/man8/gfs_tool.8

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.links
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs-tools.links	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,6 @@
+usr/sbin/gfs_fsck usr/sbin/fsck.gfs
+usr/sbin/gfs_mkfs usr/sbin/mkfs.gfs
+usr/sbin/mount.gfs2 sbin/mount.gfs
+usr/sbin/umount.gfs2 sbin/umount.gfs
+usr/share/man/man8/gfs_fsck.8.gz usr/share/man/man8/fsck.gfs.8.gz
+usr/share/man/man8/gfs_mkfs.8.gz usr/share/man/man8/mkfs.gfs.8.gz

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.dirs
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.dirs	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+sbin

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.docs
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.docs	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,4 @@
+doc/min-gfs.txt
+doc/usage.txt
+doc/gfs2.txt
+doc/journaling.txt

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.init
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.init	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,84 @@
+#!/bin/bash
+
+#
+# This script's behavior is modeled closely after the netfs script.  
+#
+GFS2FSTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $4 !~ /noauto/ { print $2 }' /etc/fstab)
+GFS2MTAB=$(LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" { print $2 }' /proc/mounts)
+
+# See how we were called.
+case "$1" in
+  start)
+        if [ -n "$GFS2FSTAB" ] 
+	then
+		echo -n "Mounting GFS2 filesystems: "
+		mount -a -t gfs2
+		echo "done."
+	fi
+	;;
+
+  stop)
+  	if [ -n "$GFS2MTAB" ] 
+	then
+		sig=
+		retry=6
+		remaining=`LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" {print $2}' /proc/mounts`
+		while [ -n "$remaining" -a "$retry" -gt 0 ]
+		do
+			echo -n "Unmounting GFS2 filesystems: "
+			umount -a -t gfs2
+
+			if [ $retry -eq 0 ] 
+			then
+				echo "failed"
+				echo -n "Unmounting GFS2 filesystems (lazy): "
+				umount -l -a -t gfs2
+				break
+			fi
+
+			sleep 2
+			remaining=`LC_ALL=C awk '!/^#/ && $3 == "gfs2" && $2 != "/" {print $2}' /proc/mounts`
+			[ -z "$remaining" ] && break
+			fuser -k -m $sig $remaining >/dev/null
+			sleep 10
+			retry=$(($retry - 1))
+			sig=-9
+		done
+		echo "done"
+	fi
+
+	modprobe -r lock_nolock 2>&1 || true
+	modprobe -r lock_dlm 2>&1 || true
+	modprobe -r gfs2 2>&1 || true
+	;;
+
+  status)
+	if [ -f /proc/mounts ]
+	then
+	        [ -n "$GFS2FSTAB" ] && {
+		     echo "Configured GFS2 mountpoints: "
+		     for fs in $GFS2FSTAB; do echo $fs ; done
+		}
+		[ -n "$GFS2MTAB" ] && {
+                      echo "Active GFS2 mountpoints: "
+		      for fs in $GFS2MTAB; do echo $fs ; done
+		}
+	else
+		echo "/proc filesystem unavailable"
+	fi
+	;;
+
+  restart)
+	$0 stop
+	$0 start
+	;;
+
+  reload)
+        $0 start
+	;;
+  *)
+	echo $"Usage: $0 {start|stop|restart|reload|status}"
+	exit 1
+esac
+
+exit 0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,18 @@
+usr/sbin/fsck.gfs2
+usr/sbin/gfs2_convert
+usr/sbin/gfs2_edit
+usr/sbin/gfs2_jadd
+usr/sbin/gfs2_quota
+usr/sbin/gfs2_tool
+usr/sbin/mkfs.gfs2
+usr/sbin/mount.gfs2
+usr/sbin/umount.gfs2
+usr/share/man/man8/gfs2.8
+usr/share/man/man8/gfs2_convert.8
+usr/share/man/man8/gfs2_fsck.8
+usr/share/man/man8/gfs2_grow.8
+usr/share/man/man8/gfs2_jadd.8
+usr/share/man/man8/gfs2_mount.8
+usr/share/man/man8/gfs2_quota.8
+usr/share/man/man8/gfs2_tool.8
+usr/share/man/man8/mkfs.gfs2.8

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.links
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gfs2-tools.links	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,11 @@
+usr/sbin/fsck.gfs2 usr/sbin/gfs2_fsck
+usr/sbin/mkfs.gfs2 usr/sbin/gfs2_mkfs
+usr/sbin/mkfs.gfs2 usr/sbin/gfs2_jadd
+usr/sbin/mkfs.gfs2 usr/sbin/gfs2_grow
+usr/sbin/mount.gfs2 usr/sbin/gfs2_mount
+usr/sbin/umount.gfs2 usr/sbin/gfs2_umount
+usr/sbin/mount.gfs2 sbin/mount.gfs2
+usr/sbin/umount.gfs2 sbin/umount.gfs2
+usr/share/man/man8/gfs2_fsck.8.gz usr/share/man/man8/fsck.gfs2.8.gz
+usr/share/man/man8/mkfs.gfs2.8.gz usr/share/man/man8/gfs2_mkfs.8.gz
+usr/share/man/man8/gfs2_mount.8.gz usr/share/man/man8/mount.gfs2.8.gz

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.config
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.config	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+# <server> <options>

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.init
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.init	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,54 @@
+#! /bin/sh
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/gnbd_import
+NAME=gnbd_import
+DESC="global network block device client"
+
+test -x $DAEMON || exit 0
+
+set -e
+
+case "$1" in
+  start)
+	echo -n "Starting $DESC: "
+	if [ -e /etc/cluster/gnbdimports.conf ]; then
+		if grep -q -v '^#' /etc/cluster/gnbdimports.conf; then
+			if ! modprobe gnbd 2>&1; then
+				echo "Warning unable to load gnbd kernel module"
+			fi
+			sleep 5
+			grep -v "^#" /etc/cluster/gnbdimports.conf | grep -v "^[:space:]*$" | \
+			while read server options; do
+				gnbd_import -i $server $options
+			done
+			sleep 10
+			echo "done."
+		fi
+	else
+		echo "No configured imports."
+	fi
+	;;
+  stop)
+	echo -n "Releasing device(s): "
+		gnbd_import -R
+	echo "done."
+	if ! modprobe -r gnbd 2>&1; then
+		echo "Warning unable to unload gnbd kernel module"
+	fi
+	;;
+  restart|force-reload)
+	echo -n "Restarting $DESC: "
+	$0 stop
+	sleep 1
+	$0 start
+	echo "$NAME."
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-client.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,5 @@
+etc/cluster/gnbdimports.conf
+usr/sbin/gnbd_import
+usr/sbin/gnbd_monitor
+usr/sbin/gnbd_recvd
+usr/share/man/man8/gnbd_import.8

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.config
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.config	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+# <device> <exportname> <options>

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.default
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.default	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+# GNBD_OPTIONS=""

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.init
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.init	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,60 @@
+#! /bin/sh
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/gnbd_serv
+NAME=gnbd_serv
+DESC="global network block device server"
+
+test -x $DAEMON || exit 0
+
+GNBD_OPTIONS=""
+
+if [ -f /etc/default/gnbd-server ] ; then
+	. /etc/default/gnbd-server
+fi
+
+set -e
+
+case "$1" in
+  start)
+	echo -n "Starting $DESC: "
+	if grep -q '^/' /etc/cluster/gnbdexports.conf; then
+		start-stop-daemon --start --quiet --pidfile /var/run/gnbd/$NAME.pid --exec $DAEMON -- $GNBD_OPTIONS
+		echo "Exporting device(s):"
+		grep -v "^#" /etc/cluster/gnbdexports.conf | grep -v "^[:space:]*$" | \
+		while read device name options; do
+			gnbd_export -d $device -e $name $options
+		done
+		echo "done."
+	else
+		echo "No configured exports."
+	fi
+	;;
+  stop)
+	if [ -e /var/run/gnbd/$NAME.pid ]; then
+		echo -n "Unexporting device(s): "
+		gnbd_export -R
+		echo "done."
+		echo -n "Stopping $DESC: "
+		start-stop-daemon --stop --quiet --pidfile /var/run/gnbd/$NAME.pid --exec $DAEMON
+		rm -f /var/run/gnbd/$NAME.pid
+		echo "$NAME."
+	else
+		echo "Stopping $DESC: is not running."
+	fi
+	;;
+  restart|force-reload)
+	echo -n "Restarting $DESC: "
+	$0 stop
+	sleep 1
+	$0 start
+	echo "$NAME."
+	;;
+  *)
+	N=/etc/init.d/$NAME
+	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	exit 1
+	;;
+esac
+
+exit 0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/gnbd-server.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,8 @@
+etc/cluster/gnbdexports.conf
+usr/sbin/gnbd_clusterd
+usr/sbin/gnbd_export
+usr/sbin/gnbd_get_uid
+usr/sbin/gnbd_serv
+usr/share/man/man8/gnbd.8
+usr/share/man/man8/gnbd_export.8
+usr/share/man/man8/gnbd_serv.8

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libcman-dev.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libcman-dev.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,2 @@
+usr/include/libcman.h
+usr/lib/libcman.a

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libcman-dev.links
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libcman-dev.links	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+usr/lib/libcman.so.2 usr/lib/libcman.so

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libcman2.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libcman2.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+usr/lib/libcman.so.2.0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libcman2.links
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libcman2.links	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+usr/lib/libcman.so.2.0 usr/lib/libcman.so.2

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm-dev.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm-dev.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,7 @@
+usr/include/libdlm.h
+usr/lib/libdlm.a
+usr/lib/libdlm_lt.a
+usr/sbin/dlm_tool
+usr/share/man/man8/dlm_tool.8
+usr/share/man/man3/dlm_*.3
+usr/share/man/man3/libdlm.3

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm-dev.links
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm-dev.links	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,2 @@
+usr/lib/libdlm.so.2 usr/lib/libdlm.so
+usr/lib/libdlm_lt.so.2 usr/lib/libdlm_lt.so

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm2.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm2.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,3 @@
+etc/udev/rules.d/45-dlm.rules
+usr/lib/libdlm_lt.so.2.0
+usr/lib/libdlm.so.2.0

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm2.links
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/libdlm2.links	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,2 @@
+usr/lib/libdlm_lt.so.2.0 usr/lib/libdlm_lt.so.2
+usr/lib/libdlm.so.2.0 usr/lib/libdlm.so.2

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00_fix_gfs2_quota.dpatch
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00_fix_gfs2_quota.dpatch	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,468 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 00_fix_gfs2_quota.dpatch by  <fabbione at gordian.int.fabbione.net>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at DPATCH@
+diff -urNad redhat-cluster-suite-2.20071022~/gfs2/include/gfs2_ondisk.h redhat-cluster-suite-2.20071022/gfs2/include/gfs2_ondisk.h
+--- redhat-cluster-suite-2.20071022~/gfs2/include/gfs2_ondisk.h	1970-01-01 01:00:00.000000000 +0100
++++ redhat-cluster-suite-2.20071022/gfs2/include/gfs2_ondisk.h	2007-10-22 05:45:40.000000000 +0200
+@@ -0,0 +1,445 @@
++/*
++ * Copyright (C) Sistina Software, Inc.  1997-2003 All rights reserved.
++ * Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
++ *
++ * This copyrighted material is made available to anyone wishing to use,
++ * modify, copy, or redistribute it subject to the terms and conditions
++ * of the GNU General Public License v.2.
++ */
++
++#ifndef __GFS2_ONDISK_DOT_H__
++#define __GFS2_ONDISK_DOT_H__
++
++#define GFS2_MAGIC		0x01161970
++#define GFS2_BASIC_BLOCK	512
++#define GFS2_BASIC_BLOCK_SHIFT	9
++
++/* Lock numbers of the LM_TYPE_NONDISK type */
++
++#define GFS2_MOUNT_LOCK		0
++#define GFS2_LIVE_LOCK		1
++#define GFS2_TRANS_LOCK		2
++#define GFS2_RENAME_LOCK	3
++
++/* Format numbers for various metadata types */
++
++#define GFS2_FORMAT_NONE	0
++#define GFS2_FORMAT_SB		100
++#define GFS2_FORMAT_RG		200
++#define GFS2_FORMAT_RB		300
++#define GFS2_FORMAT_DI		400
++#define GFS2_FORMAT_IN		500
++#define GFS2_FORMAT_LF		600
++#define GFS2_FORMAT_JD		700
++#define GFS2_FORMAT_LH		800
++#define GFS2_FORMAT_LD		900
++#define GFS2_FORMAT_LB		1000
++#define GFS2_FORMAT_EA		1600
++#define GFS2_FORMAT_ED		1700
++#define GFS2_FORMAT_QC		1400
++/* These are format numbers for entities contained in files */
++#define GFS2_FORMAT_RI		1100
++#define GFS2_FORMAT_DE		1200
++#define GFS2_FORMAT_QU		1500
++/* These are part of the superblock */
++#define GFS2_FORMAT_FS		1801
++#define GFS2_FORMAT_MULTI	1900
++
++/*
++ * An on-disk inode number
++ */
++
++struct gfs2_inum {
++	__be64 no_formal_ino;
++	__be64 no_addr;
++};
++
++/*
++ * Generic metadata head structure
++ * Every inplace buffer logged in the journal must start with this.
++ */
++
++#define GFS2_METATYPE_NONE	0
++#define GFS2_METATYPE_SB	1
++#define GFS2_METATYPE_RG	2
++#define GFS2_METATYPE_RB	3
++#define GFS2_METATYPE_DI	4
++#define GFS2_METATYPE_IN	5
++#define GFS2_METATYPE_LF	6
++#define GFS2_METATYPE_JD	7
++#define GFS2_METATYPE_LH	8
++#define GFS2_METATYPE_LD	9
++#define GFS2_METATYPE_LB	12
++#define GFS2_METATYPE_EA	10
++#define GFS2_METATYPE_ED	11
++#define GFS2_METATYPE_QC	14
++
++struct gfs2_meta_header {
++	__be32 mh_magic;
++	__be32 mh_type;
++	__be64 __pad0;		/* Was generation number in gfs1 */
++	__be32 mh_format;
++	__be32 __pad1;		/* Was incarnation number in gfs1 */
++};
++
++/*
++ * super-block structure
++ *
++ * It's probably good if SIZEOF_SB <= GFS2_BASIC_BLOCK (512 bytes)
++ *
++ * Order is important, need to be able to read old superblocks to do on-disk
++ * version upgrades.
++ */
++
++/* Address of superblock in GFS2 basic blocks */
++#define GFS2_SB_ADDR		128
++
++/* The lock number for the superblock (must be zero) */
++#define GFS2_SB_LOCK		0
++
++/* Requirement:  GFS2_LOCKNAME_LEN % 8 == 0
++   Includes: the fencing zero at the end */
++#define GFS2_LOCKNAME_LEN	64
++
++struct gfs2_sb {
++	struct gfs2_meta_header sb_header;
++
++	__be32 sb_fs_format;
++	__be32 sb_multihost_format;
++	__u32  __pad0;	/* Was superblock flags in gfs1 */
++
++	__be32 sb_bsize;
++	__be32 sb_bsize_shift;
++	__u32 __pad1;	/* Was journal segment size in gfs1 */
++
++	struct gfs2_inum sb_master_dir; /* Was jindex dinode in gfs1 */
++	struct gfs2_inum __pad2; /* Was rindex dinode in gfs1 */
++	struct gfs2_inum sb_root_dir;
++
++	char sb_lockproto[GFS2_LOCKNAME_LEN];
++	char sb_locktable[GFS2_LOCKNAME_LEN];
++	/* In gfs1, quota and license dinodes followed */
++};
++
++/*
++ * resource index structure
++ */
++
++struct gfs2_rindex {
++	__be64 ri_addr;	/* grp block disk address */
++	__be32 ri_length;	/* length of rgrp header in fs blocks */
++	__u32 __pad;
++
++	__be64 ri_data0;	/* first data location */
++	__be32 ri_data;	/* num of data blocks in rgrp */
++
++	__be32 ri_bitbytes;	/* number of bytes in data bitmaps */
++
++	__u8 ri_reserved[64];
++};
++
++/*
++ * resource group header structure
++ */
++
++/* Number of blocks per byte in rgrp */
++#define GFS2_NBBY		4
++#define GFS2_BIT_SIZE		2
++#define GFS2_BIT_MASK		0x00000003
++
++#define GFS2_BLKST_FREE		0
++#define GFS2_BLKST_USED		1
++#define GFS2_BLKST_UNLINKED	2
++#define GFS2_BLKST_DINODE	3
++
++#define GFS2_RGF_JOURNAL	0x00000001
++#define GFS2_RGF_METAONLY	0x00000002
++#define GFS2_RGF_DATAONLY	0x00000004
++#define GFS2_RGF_NOALLOC	0x00000008
++
++struct gfs2_rgrp {
++	struct gfs2_meta_header rg_header;
++
++	__be32 rg_flags;
++	__be32 rg_free;
++	__be32 rg_dinodes;
++	__be32 __pad;
++	__be64 rg_igeneration;
++
++	__u8 rg_reserved[80]; /* Several fields from gfs1 now reserved */
++};
++
++/*
++ * quota linked list: user quotas and group quotas form two separate 
++ * singly linked lists. ll_next stores uids or gids of next quotas in the 
++ * linked list.
++
++Given the uid/gid, how to calculate the quota file offsets for the corresponding
++gfs2_quota structures on disk:
++
++for user quotas, given uid,
++offset = uid * sizeof(struct gfs2_quota);
++
++for group quotas, given gid,
++offset = (gid * sizeof(struct gfs2_quota)) + sizeof(struct gfs2_quota);
++
++
++  uid:0   gid:0       uid:12   gid:12      uid:17   gid:17     uid:5142 gid:5142
+++-------+-------+    +-------+-------+    +-------+- - - -+    +- - - -+-------+
++| valid | valid | :: | valid | valid | :: | valid | inval | :: | inval | valid |
+++-------+-------+    +-------+-------+    +-------+- - - -+    +- - - -+-------+
++next:12   next:12    next:17 next:5142    next:NULL                    next:NULL
++    |       |            |       |            |<-- user quota list         |
++     \______|___________/ \______|___________/         group quota list -->|
++            |                    |                                         |
++             \__________________/ \_______________________________________/
++
++*/
++
++/*
++ * quota structure
++ */
++
++struct gfs2_quota {
++	__be64 qu_limit;
++	__be64 qu_warn;
++	__be64 qu_value;
++	__be32 qu_ll_next; /* location of next quota in list */
++	__u8 qu_reserved[60];
++};
++
++/*
++ * dinode structure
++ */
++
++#define GFS2_MAX_META_HEIGHT	10
++#define GFS2_DIR_MAX_DEPTH	17
++
++#define DT2IF(dt) (((dt) << 12) & S_IFMT)
++#define IF2DT(sif) (((sif) & S_IFMT) >> 12)
++
++enum {
++	gfs2fl_Jdata		= 0,
++	gfs2fl_ExHash		= 1,
++	gfs2fl_Unused		= 2,
++	gfs2fl_EaIndirect	= 3,
++	gfs2fl_Directio		= 4,
++	gfs2fl_Immutable	= 5,
++	gfs2fl_AppendOnly	= 6,
++	gfs2fl_NoAtime		= 7,
++	gfs2fl_Sync		= 8,
++	gfs2fl_System		= 9,
++	gfs2fl_TruncInProg	= 29,
++	gfs2fl_InheritDirectio	= 30,
++	gfs2fl_InheritJdata	= 31,
++};
++
++/* Dinode flags */
++#define GFS2_DIF_JDATA			0x00000001
++#define GFS2_DIF_EXHASH			0x00000002
++#define GFS2_DIF_UNUSED			0x00000004  /* only in gfs1 */
++#define GFS2_DIF_EA_INDIRECT		0x00000008
++#define GFS2_DIF_DIRECTIO		0x00000010
++#define GFS2_DIF_IMMUTABLE		0x00000020
++#define GFS2_DIF_APPENDONLY		0x00000040
++#define GFS2_DIF_NOATIME		0x00000080
++#define GFS2_DIF_SYNC			0x00000100
++#define GFS2_DIF_SYSTEM			0x00000200 /* New in gfs2 */
++#define GFS2_DIF_TRUNC_IN_PROG		0x20000000 /* New in gfs2 */
++#define GFS2_DIF_INHERIT_DIRECTIO	0x40000000
++#define GFS2_DIF_INHERIT_JDATA		0x80000000
++
++struct gfs2_dinode {
++	struct gfs2_meta_header di_header;
++
++	struct gfs2_inum di_num;
++
++	__be32 di_mode;	/* mode of file */
++	__be32 di_uid;	/* owner's user id */
++	__be32 di_gid;	/* owner's group id */
++	__be32 di_nlink;	/* number of links to this file */
++	__be64 di_size;	/* number of bytes in file */
++	__be64 di_blocks;	/* number of blocks in file */
++	__be64 di_atime;	/* time last accessed */
++	__be64 di_mtime;	/* time last modified */
++	__be64 di_ctime;	/* time last changed */
++	__be32 di_major;	/* device major number */
++	__be32 di_minor;	/* device minor number */
++
++	/* This section varies from gfs1. Padding added to align with
++         * remainder of dinode
++	 */
++	__be64 di_goal_meta;	/* rgrp to alloc from next */
++	__be64 di_goal_data;	/* data block goal */
++	__be64 di_generation;	/* generation number for NFS */
++
++	__be32 di_flags;	/* GFS2_DIF_... */
++	__be32 di_payload_format;  /* GFS2_FORMAT_... */
++	__u16 __pad1;	/* Was ditype in gfs1 */
++	__be16 di_height;	/* height of metadata */
++	__u32 __pad2;	/* Unused incarnation number from gfs1 */
++
++	/* These only apply to directories  */
++	__u16 __pad3;	/* Padding */
++	__be16 di_depth;	/* Number of bits in the table */
++	__be32 di_entries;	/* The number of entries in the directory */
++
++	struct gfs2_inum __pad4; /* Unused even in current gfs1 */
++
++	__be64 di_eattr;	/* extended attribute block number */
++	__be32 di_atime_nsec;   /* nsec portion of atime */
++	__be32 di_mtime_nsec;   /* nsec portion of mtime */
++	__be32 di_ctime_nsec;   /* nsec portion of ctime */
++
++	__u8 di_reserved[44];
++};
++
++/*
++ * directory structure - many of these per directory file
++ */
++
++#define GFS2_FNAMESIZE		255
++#define GFS2_DIRENT_SIZE(name_len) ((sizeof(struct gfs2_dirent) + (name_len) + 7) & ~7)
++
++struct gfs2_dirent {
++	struct gfs2_inum de_inum;
++	__be32 de_hash;
++	__be16 de_rec_len;
++	__be16 de_name_len;
++	__be16 de_type;
++	__u8 __pad[14];
++};
++
++/*
++ * Header of leaf directory nodes
++ */
++
++struct gfs2_leaf {
++	struct gfs2_meta_header lf_header;
++
++	__be16 lf_depth;		/* Depth of leaf */
++	__be16 lf_entries;		/* Number of dirents in leaf */
++	__be32 lf_dirent_format;	/* Format of the dirents */
++	__be64 lf_next;			/* Next leaf, if overflow */
++
++	__u8 lf_reserved[64];
++};
++
++/*
++ * Extended attribute header format
++ */
++
++#define GFS2_EA_MAX_NAME_LEN	255
++#define GFS2_EA_MAX_DATA_LEN	65536
++
++#define GFS2_EATYPE_UNUSED	0
++#define GFS2_EATYPE_USR		1
++#define GFS2_EATYPE_SYS		2
++#define GFS2_EATYPE_SECURITY	3
++
++#define GFS2_EATYPE_LAST	3
++#define GFS2_EATYPE_VALID(x)	((x) <= GFS2_EATYPE_LAST)
++
++#define GFS2_EAFLAG_LAST	0x01	/* last ea in block */
++
++struct gfs2_ea_header {
++	__be32 ea_rec_len;
++	__be32 ea_data_len;
++	__u8 ea_name_len;	/* no NULL pointer after the string */
++	__u8 ea_type;		/* GFS2_EATYPE_... */
++	__u8 ea_flags;		/* GFS2_EAFLAG_... */
++	__u8 ea_num_ptrs;
++	__u32 __pad;
++};
++
++/*
++ * Log header structure
++ */
++
++#define GFS2_LOG_HEAD_UNMOUNT	0x00000001	/* log is clean */
++
++struct gfs2_log_header {
++	struct gfs2_meta_header lh_header;
++
++	__be64 lh_sequence;	/* Sequence number of this transaction */
++	__be32 lh_flags;	/* GFS2_LOG_HEAD_... */
++	__be32 lh_tail;		/* Block number of log tail */
++	__be32 lh_blkno;
++	__be32 lh_hash;
++};
++
++/*
++ * Log type descriptor
++ */
++
++#define GFS2_LOG_DESC_METADATA	300
++/* ld_data1 is the number of metadata blocks in the descriptor.
++   ld_data2 is unused. */
++
++#define GFS2_LOG_DESC_REVOKE	301
++/* ld_data1 is the number of revoke blocks in the descriptor.
++   ld_data2 is unused. */
++
++#define GFS2_LOG_DESC_JDATA	302
++/* ld_data1 is the number of data blocks in the descriptor.
++   ld_data2 is unused. */
++
++struct gfs2_log_descriptor {
++	struct gfs2_meta_header ld_header;
++
++	__be32 ld_type;		/* GFS2_LOG_DESC_... */
++	__be32 ld_length;	/* Number of buffers in this chunk */
++	__be32 ld_data1;	/* descriptor-specific field */
++	__be32 ld_data2;	/* descriptor-specific field */
++
++	__u8 ld_reserved[32];
++};
++
++/*
++ * Inum Range
++ * Describe a range of formal inode numbers allocated to
++ * one machine to assign to inodes.
++ */
++
++#define GFS2_INUM_QUANTUM	1048576
++
++struct gfs2_inum_range {
++	__be64 ir_start;
++	__be64 ir_length;
++};
++
++/*
++ * Statfs change
++ * Describes an change to the pool of free and allocated
++ * blocks.
++ */
++
++struct gfs2_statfs_change {
++	__be64 sc_total;
++	__be64 sc_free;
++	__be64 sc_dinodes;
++};
++
++/*
++ * Quota change
++ * Describes an allocation change for a particular
++ * user or group.
++ */
++
++#define GFS2_QCF_USER		0x00000001
++
++struct gfs2_quota_change {
++	__be64 qc_change;
++	__be32 qc_flags;	/* GFS2_QCF_... */
++	__be32 qc_id;
++};
++
++struct gfs2_quota_lvb {
++        __be32 qb_magic;
++        __u32 __pad;
++        __be64 qb_limit;      /* Hard limit of # blocks to alloc */
++        __be64 qb_warn;       /* Warn user when alloc is above this # */
++        __be64 qb_value;       /* Current # blocks allocated */
++};
++
++#endif /* __GFS2_ONDISK_DOT_H__ */
+diff -urNad redhat-cluster-suite-2.20071022~/gfs2/libgfs2/libgfs2.h redhat-cluster-suite-2.20071022/gfs2/libgfs2/libgfs2.h
+--- redhat-cluster-suite-2.20071022~/gfs2/libgfs2/libgfs2.h	2007-10-22 05:51:08.000000000 +0200
++++ redhat-cluster-suite-2.20071022/gfs2/libgfs2/libgfs2.h	2007-10-22 05:51:37.000000000 +0200
+@@ -20,7 +20,7 @@
+ #include <linux/limits.h>
+ 
+ #include "linux_endian.h"
+-#include <linux/gfs2_ondisk.h>
++#include "gfs2_ondisk.h"
+ #include "osi_list.h"
+ #include "copyright.cf"
+ #include "ondisk.h"

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00list
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/patches/00list	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+00_fix_gfs2_quota.dpatch

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/po/POTFILES.in
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/po/POTFILES.in	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] cman.templates

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/po/templates.pot
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/po/templates.pot	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,51 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL at ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: fabbione at ubuntu.com\n"
+"POT-Creation-Date: 2006-07-14 17:15+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
+"Language-Team: LANGUAGE <LL at li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../cman.templates:1001
+msgid "Cluster Manager Upgrade"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../cman.templates:1001
+msgid "An older version of cman installed on the system."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../cman.templates:1001
+msgid ""
+"The version that is going to be installed is *NOT* compatible with the old "
+"one and will break the cluster horribly if not upgraded properly."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../cman.templates:1001
+msgid ""
+"Check https://wiki.ubuntu.com/UpgradingClusterProcedure for the latest "
+"instructions on how to proceed."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../cman.templates:1001
+msgid "Continue with the upgrade?"
+msgstr ""

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.default
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.default	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+# RGMGR_OPTIONS=""

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.docs
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.docs	Sun Dec  2 20:55:14 2007
@@ -0,0 +1 @@
+rgmanager/errors.txt

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.init
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.init	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+DESC="cluster service manager"
+NAME=clurgmgrd
+DAEMON=/usr/sbin/clurgmgrd
+
+LOG_ERR=3
+LOG_WARNING=4
+LOG_NOTICE=5
+LOG_INFO=6
+
+RGMGR_OPTIONS=""
+
+if [ -f /etc/default/rgmanager ]; then
+	. /etc/default/rgmanager
+fi
+
+#
+# log_and_print <level> <message>
+#
+log_and_print() {
+if [ -z "$1" -o -z "$2" ]; then
+	return 1;
+fi
+
+clulog -p $$ -n "rgmanager" -s $1 "$2"
+echo $2
+
+return 0;
+}
+
+stop_cluster() {
+TIMEOUT=30
+STOP=0
+while [ 0 ]; do
+	if [ -n "`pidof $NAME`" ]; then
+		echo -n "Waiting for services to stop: " 
+		while [ -n "`pidof $NAME`" ] && [ "$STOP" != "$TIMEOUT" ]; do
+			kill `pidof $NAME`
+			STOP=`expr $STOP + 1`
+			sleep 1
+		done
+		if [ -n "`pidof $NAME`" ]; then
+			kill -9 `pidof $NAME`
+		fi
+		echo "done."
+	else
+		echo "Services are stopped."
+	fi
+
+	return 0
+done
+}
+
+modprobe sctp 2>&1 || true
+
+case $1 in
+	start)
+		echo -n "Starting $DESC: "
+		start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON -- $RGMGR_OPTIONS
+		echo "done."
+		;;
+	restart)
+		$0 stop
+		sleep 1
+		$0 start
+		;;
+	reload|force-reload)
+		log_and_print $LOG_NOTICE "Reloading Resource Configuration: "
+		killproc $NAME -HUP
+		rv=$?
+		log_and_print $LOG_NOTICE "done."
+		exit $rv
+		;;
+	stop)
+		log_and_print $LOG_NOTICE "Stopping $DESC: "
+		start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON
+		stop_cluster
+		log_and_print $LOG_NOTICE "$NAME is stopped."
+		rm -f /var/run/$NAME.pid
+		echo "done."
+		;;
+esac

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.install
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/rgmanager.install	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,17 @@
+usr/sbin/clubufflush
+usr/sbin/clufindhostname
+usr/sbin/clulog
+usr/sbin/clunfslock
+usr/sbin/clurgmgrd
+usr/sbin/clurmtabd
+usr/sbin/clustat
+usr/sbin/clusvcadm
+usr/sbin/rg_test
+usr/share/cluster/*
+usr/share/man/man8/clubufflush.8
+usr/share/man/man8/clufindhostname.8
+usr/share/man/man8/clulog.8
+usr/share/man/man8/clurgmgrd.8
+usr/share/man/man8/clurmtabd.8
+usr/share/man/man8/clustat.8
+usr/share/man/man8/clusvcadm.8

Added: dists/trunk/redhat-cluster/redhat-cluster/debian/rules
==============================================================================
--- (empty file)
+++ dists/trunk/redhat-cluster/redhat-cluster/debian/rules	Sun Dec  2 20:55:14 2007
@@ -0,0 +1,108 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+ifneq (,$(findstring $(DEB_HOST_ARCH), i386))
+  BUILD_XEN = --enable_xen
+endif
+
+
+BUILDROOT := $(shell pwd)
+
+SOMAJOR=2
+SOMINOR=0
+
+configure: patch configure-stamp
+configure-stamp:
+	dh_testdir
+
+	./configure --kernel_src=$(BUILDROOT) \
+		    --kernel_build=$(BUILDROOT) \
+		    --sbindir=/usr/sbin \
+			$(BUILD_XEN) \
+		    --nssincdir=/usr/include/nss \
+		    --nsprincdir=/usr/include/nspr \
+		    --libexecdir=/usr/lib/openais \
+		    --release_major=$(SOMAJOR) \
+		    --release_minor=$(SOMINOR)
+
+	# disable kernel modules
+	sed -i -e 's/-kernel.* \?=/& 1/g' make/defines.mk
+
+	touch $@
+
+build: configure build-stamp
+build-stamp:
+	dh_testdir
+
+	$(MAKE) all
+
+	touch $@
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	$(MAKE) install DESTDIR=$(BUILDROOT)/debian/tmp/
+
+	# manual craft
+	install -d -m 0755 debian/tmp/etc/cluster
+	install -m 0640 debian/gnbd-server.config debian/tmp/etc/cluster/gnbdexports.conf
+	install -m 0640 debian/gnbd-client.config debian/tmp/etc/cluster/gnbdimports.conf
+
+	mv debian/tmp/etc/udev/rules.d/51-dlm.rules debian/tmp/etc/udev/rules.d/45-dlm.rules
+
+	dh_install --sourcedir=debian/tmp --list-missing
+
+	dh_installdirs
+	dh_link
+	dh_installdocs
+	dh_installchangelogs
+	dh_installdebconf
+	dh_installinit -p cman --no-start --no-restart-on-upgrade -- start 61 S . start 5 0 6 .
+	dh_installinit -p gnbd-server --no-start --no-restart-on-upgrade -- start 63 S . start 3 0 6 .
+	dh_installinit -p gnbd-client --no-start --no-restart-on-upgrade -- start 64 S . start 3 0 6 .
+	dh_installinit -p gfs-tools --no-start --no-restart-on-upgrade -- start 65 S . start 2 0 6 .
+	dh_installinit -p gfs2-tools --no-start --no-restart-on-upgrade -- start 65 S . start 2 0 6 .
+	dh_installinit -p rgmanager --no-start --no-restart-on-upgrade -- start 65 S . start 1 0 6 .
+
+binary-arch: install
+	dh_testdir
+	dh_testroot
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_makeshlibs -a
+	dh_shlibdeps -a -ldebian/tmp/usr/lib -l/usr/lib/openais
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary-indep: install
+	dh_testdir
+	dh_testroot
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary: binary-arch binary-indep
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	dh_clean
+
+	-$(MAKE) distclean
+
+	rm -rf *-stamp
+	rm -rf debian/patched



More information about the Kernel-svn-changes mailing list