cluster/cman Makefile init.d/Makefile man/Make ...
CVSROOT: /cvs/cluster
Module name: cluster
Branch: STABLE
Changes by: lhh at sourceware.org 2006-07-21 18:01:38
Modified files:
cman : Makefile cman/init.d : Makefile cman/man : Makefile Added files: cman/init.d : qdiskd cman/man : mkqdisk.8 qdisk.5 qdiskd.8 cman/qdisk : Makefile README bitmap.c clulog.c clulog.h
crc32.c disk.c disk.h disk_util.c gettid.c gettid.h main.c mkqdisk.c platform.h proc.c score.c score.h
Log message:
Merge from RHEL4 branch; add QDisk
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/Makefile.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.4.8.1&r2=1.4.8.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/init.d/qdiskd.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/init.d/Makefile.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.1&r2=1.1.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/man/mkqdisk.8.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/man/qdisk.5.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/man/qdiskd.8.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.4.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/man/Makefile.diff?cvsroot=cluster&only_with_tag=STABLE&r1=1.1&r2=1.1.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/Makefile.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.5.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/README.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/bitmap.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/clulog.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/clulog.h.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/crc32.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/disk.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/disk.h.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/disk_util.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/gettid.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/gettid.h.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/main.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/mkqdisk.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.3.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/platform.h.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/proc.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.c.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/cman/qdisk/score.h.diff?cvsroot=cluster&only_with_tag=STABLE&r1=NONE&r2=1.2.2.1
cman/Makefile +5 -0
@@ -14,14 +14,17 @@ all: cd cman_tool && ${MAKE} all cd lib && ${MAKE} all + cd qdisk && ${MAKE} all copytobin: cd cman_tool && ${MAKE} copytobin + cd qdisk && ${MAKE} copytobin cd lib && ${MAKE} copytobin clean: cd bin && ${MAKE} clean cd cman_tool && ${MAKE} clean + cd qdisk && ${MAKE} clean cd lib && ${MAKE} clean distclean: clean
@@ -31,10 +34,12 @@ cd man && ${MAKE} install cd cman_tool && ${MAKE} install cd lib && ${MAKE} install + cd qdisk && ${MAKE} install cd init.d && ${MAKE} install uninstall: cd cman_tool && ${MAKE} uninstall cd lib && ${MAKE} uninstall cd man && ${MAKE} uninstall + cd qdisk && ${MAKE} uninstall cd init.d && ${MAKE} uninstall
/cvs/cluster/cluster/cman/init.d/qdiskd,v --> standard output revision 1.2.2.1
- renamed from cman/init.d/qdiskd +63 -0
63 lines not on this page · raw message
cman/init.d/Makefile +1 -1
@@ -10,7 +10,7 @@ ############################################################################### ############################################################################### -TARGET= cman +TARGET= cman qdiskd UNINSTALL=${top_srcdir}/scripts/uninstall.pl
/cvs/cluster/cluster/cman/man/mkqdisk.8,v --> standard output revision 1.2.4.1
- renamed from cman/man/mkqdisk.8 +23 -0
@@ -0,0 +1,23 @@ +.TH "mkqdisk" "8" "July 2006" "" "Quorum Disk Management" +.SH "NAME" +mkqdisk \- Cluster Quorum Disk Utility +.SH "WARNING" +Use of this command can cause the cluster to malfunction. +.SH "SYNOPSIS" +\fBmkqdisk [\-?|\-h] | [\-L] | [\-f \fPlabel\fB] [\-c \fPdevice \fB -l \fPlabel\fB] +.SH "DESCRIPTION" +.PP +The \fBmkqdisk\fP command is used to create a new quorum disk or display +existing quorum disks accessible from a given cluster node. +.SH "OPTIONS" +.IP "\-c device \-l label" +Initialize a new cluster quorum disk. This will destroy all data on the given +device. If a cluster is currently using that device as a quorum disk, the +entire cluster will malfunction. Do not ru +.IP "\-f label" +Find the cluster quorum disk with the given label and display information about it.. +.IP "\-L" +Display information on all accessible cluster quorum disks. + +.SH "SEE ALSO" +qdisk(5) qdiskd(8)
/cvs/cluster/cluster/cman/man/qdisk.5,v --> standard output revision 1.2.4.1
- renamed from cman/man/qdisk.5 +309 -0
309 lines not on this page · raw message
/cvs/cluster/cluster/cman/man/qdiskd.8,v --> standard output revision 1.2.4.1
- renamed from cman/man/qdiskd.8 +20 -0
@@ -0,0 +1,20 @@ +.TH "qdiskd" "8" "July 2006" "" "Quorum Disk Management" +.SH "NAME" +qdiskd \- Cluster Quorum Disk Daemon +.SH "SYNOPSIS" +\fBqdiskd [\-f] [\-d] +.SH "DESCRIPTION" +.PP +The \fBqdiskd\fP daemon talks to CMAN and provides a mechanism for determining +node-fitness in a cluster environment. See +.B +qdisk(5) +for configuration information. +.SH "OPTIONS" +.IP "\-f" +Run in the foreground (do not fork / daemonize). +.IP "\-d" +Enable debug output. + +.SH "SEE ALSO" +mkqdisk(8), qdisk(5), cman(5)
cman/man/Makefile +4 -4
@@ -18,10 +18,10 @@ install: install -d ${mandir}/man5 install -d ${mandir}/man8 - install cman.5 ${mandir}/man5 - install cman_tool.8 ${mandir}/man8 + install cman.5 qdisk.5 ${mandir}/man5 + install cman_tool.8 qdiskd.8 mkqdisk.8 ${mandir}/man8 uninstall: - ${UNINSTALL} cman.5 ${mandir}/man5 - ${UNINSTALL} cman_tool.8 ${mandir}/man8 + ${UNINSTALL} cman.5 qdisk.5 ${mandir}/man5 + ${UNINSTALL} cman_tool.8 qdiskd.8 mkqdisk.8 ${mandir}/man8
/cvs/cluster/cluster/cman/qdisk/Makefile,v --> standard output revision 1.5.2.1
- renamed from cman/qdisk/Makefile +49 -0
49 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/README,v --> standard output revision 1.4.2.1
- renamed from cman/qdisk/README +274 -0
274 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/bitmap.c,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/bitmap.c +107 -0
107 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/clulog.c,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/clulog.c +296 -0
296 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/clulog.h,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/clulog.h +161 -0
161 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/crc32.c,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/crc32.c +125 -0
125 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/disk.c,v --> standard output revision 1.4.2.1
- renamed from cman/qdisk/disk.c +758 -0
758 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/disk.h,v --> standard output revision 1.3.2.1
- renamed from cman/qdisk/disk.h +269 -0
269 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/disk_util.c,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/disk_util.c +293 -0
293 lines not on this page · raw message
/cvs/cluster/cluster/cman/qdisk/gettid.c,v --> standard output revision 1.4.2.1
- renamed from cman/qdisk/gettid.c +24 -0
@@ -0,0 +1,24 @@ +#include <sys/types.h> +#include <sys/syscall.h> +#include <linux/unistd.h> +#include <gettid.h> +#include <errno.h> +#include <unistd.h> + +/* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ + +#ifdef __NR_gettid +pid_t gettid (void) +{ + return syscall(__NR_gettid); +} +#else + +#warn "gettid not available -- substituting with pthread_self()" + +#include <pthread.h> +pid_t gettid (void) +{ + return (pid_t)pthread_self(); +} +#endif
/cvs/cluster/cluster/cman/qdisk/gettid.h,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/gettid.h +7 -0
@@ -0,0 +1,7 @@ +#ifndef __GETTID_H +#define __GETTID_H + +pid_t gettid(void); + +#endif +
/cvs/cluster/cluster/cman/qdisk/main.c,v --> standard output revision 1.3.2.1
- renamed from cman/qdisk/main.c +1026 -0
171 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/cman/qdisk/mkqdisk.c,v --> standard output revision 1.3.2.1
- renamed from cman/qdisk/mkqdisk.c +93 -0
93 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/cman/qdisk/platform.h,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/platform.h +59 -0
59 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/cman/qdisk/proc.c,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/proc.c +128 -0
128 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/cman/qdisk/score.c,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/score.c +383 -0
383 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
/cvs/cluster/cluster/cman/qdisk/score.h,v --> standard output revision 1.2.2.1
- renamed from cman/qdisk/score.h +60 -0
60 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.