public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
From: David Teigland <teigland@fedoraproject.org>
To: cluster-cvs-relay@redhat.com
Subject: master - gfs_controld: ignore dlm uevents
Date: Tue, 26 Aug 2008 08:20:00 -0000	[thread overview]
Message-ID: <20080825151151.8D981120358@lists.fedorahosted.org> (raw)

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=7ae1e7b875e74c7161b227303c099efa4cd00b05
Commit:        7ae1e7b875e74c7161b227303c099efa4cd00b05
Parent:        88336b6e6585b9cf8d8f4b65d4fdfb256e510222
Author:        David Teigland <teigland@redhat.com>
AuthorDate:    Mon Aug 25 10:07:08 2008 -0500
Committer:     David Teigland <teigland@redhat.com>
CommitterDate: Mon Aug 25 10:07:08 2008 -0500

gfs_controld: ignore dlm uevents

Some people use "gfs" or "gfs2" as the name of the fs, which results
in dlm lockspaces named the same, and we want to ignore dlm uevents
for those.

Signed-off-by: David Teigland <teigland@redhat.com>
---
 group/gfs_controld/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/group/gfs_controld/main.c b/group/gfs_controld/main.c
index a9f20eb..5881961 100644
--- a/group/gfs_controld/main.c
+++ b/group/gfs_controld/main.c
@@ -275,6 +275,12 @@ static void process_uevent(int ci)
 	if (!strstr(buf, "gfs"))
 		return;
 
+	/* if an fs is named "gfs", it results in dlm uevents
+	   like "remove@/kernel/dlm/gfs" */
+
+	if (strstr(buf, "kernel/dlm"))
+		return;
+
 	log_debug("uevent: %s", buf);
 
 	if (strstr(buf, "lock_module"))


                 reply	other threads:[~2008-08-25 15:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080825151151.8D981120358@lists.fedorahosted.org \
    --to=teigland@fedoraproject.org \
    --cc=cluster-cvs-relay@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).