All of lore.kernel.org
 help / color / mirror / Atom feed
From: teigland@sourceware.org <teigland@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/group/tool main.c
Date: 25 Jul 2006 20:10:00 -0000	[thread overview]
Message-ID: <20060725201000.6262.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	teigland at sourceware.org	2006-07-25 20:09:58

Modified files:
	group/tool     : main.c 

Log message:
	'group_tool dump fence' will dump fenced's debug buffer

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/tool/main.c.diff?cvsroot=cluster&r1=1.17&r2=1.18

--- cluster/group/tool/main.c	2006/07/14 18:57:25	1.17
+++ cluster/group/tool/main.c	2006/07/25 20:09:58	1.18
@@ -32,8 +32,11 @@
 /* copied from cluster/group/gfs_controld/lock_dlm.h */
 #define LOCK_DLM_SOCK_PATH		"gfs_controld_sock"
 
+/* copied from cluster/fence/fenced/fd.h */
+#define FENCED_SOCK_PATH		"fenced_socket"
+
 /* needs to match the same in cluster/group/daemon/gd_internal.h and
-   cluster/group/gfs_controld/lock_dlm.h */
+   cluster/group/gfs_controld/lock_dlm.h and cluster/fence/fenced/fd.h */
 #define DUMP_SIZE			(1024 * 1024)
 
 /* needs to match the same in cluster/group/gfs_controld/lock_dlm.h,
@@ -329,7 +332,7 @@
 	return 0;
 }
 
-int do_gfsdump(int argc, char **argv, int fd)
+int do_maxline_dump(int argc, char **argv, int fd)
 {
 	char inbuf[DUMP_SIZE];
 	char outbuf[MAXLINE];
@@ -373,7 +376,14 @@
 				fd = connect_daemon(LOCK_DLM_SOCK_PATH);
 				if (fd < 0)
 					return -1;
-				return do_gfsdump(argc, argv, fd);
+				return do_maxline_dump(argc, argv, fd);
+			}
+
+			if (!strncmp(argv[opt_ind], "fence", 5)) {
+				fd = connect_daemon(FENCED_SOCK_PATH);
+				if (fd < 0)
+					return -1;
+				return do_maxline_dump(argc, argv, fd);
 			}
 		}
 



             reply	other threads:[~2006-07-25 20:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25 20:10 teigland [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-12-01 15:26 [Cluster-devel] cluster/group/tool main.c teigland
2006-12-01 15:26 teigland
2006-12-01 15:26 teigland
2006-11-20 22:36 rpeterso
2006-11-09 16:23 rpeterso
2006-11-09 16:22 rpeterso
2006-08-14 19:38 teigland
2006-07-31 18:38 teigland
2006-07-14 18:57 teigland
2006-07-13 18:15 teigland
2006-06-28 19:58 teigland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060725201000.6262.qmail@sourceware.org \
    --to=teigland@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.