From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 10/22] ocfs2/cluster: Print messages when adding/removing nodes
Date: Thu, 07 Oct 2010 17:33:40 -0700 [thread overview]
Message-ID: <4CAE66E4.8020807@oracle.com> (raw)
In-Reply-To: <1286496936-17072-11-git-send-email-sunil.mushran@oracle.com>
So I am going to change ML_O2CB to ML_CLUSTER.
On 10/07/2010 05:15 PM, Sunil Mushran wrote:
> Prints messages when the user adds or removes nodes.
>
> Signed-off-by: Sunil Mushran<sunil.mushran@oracle.com>
> ---
> fs/ocfs2/cluster/masklog.h | 3 ++-
> fs/ocfs2/cluster/nodemanager.c | 5 +++++
> 2 files changed, 7 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ocfs2/cluster/masklog.h b/fs/ocfs2/cluster/masklog.h
> index fd96e2a..29e7cb6 100644
> --- a/fs/ocfs2/cluster/masklog.h
> +++ b/fs/ocfs2/cluster/masklog.h
> @@ -119,7 +119,8 @@
> #define ML_ERROR 0x0000000100000000ULL /* sent to KERN_ERR */
> #define ML_NOTICE 0x0000000200000000ULL /* setn to KERN_NOTICE */
> #define ML_KTHREAD 0x0000000400000000ULL /* kernel thread activity */
> -#define ML_RESERVATIONS 0x0000000800000000ULL /* ocfs2 alloc reservations */
> +#define ML_RESERVATIONS 0x0000000800000000ULL /* ocfs2 alloc reservations */
> +#define ML_O2CB 0x0000001000000000ULL /* o2cb cluster */
>
> #define MLOG_INITIAL_AND_MASK (ML_ERROR|ML_NOTICE)
> #define MLOG_INITIAL_NOT_MASK (ML_ENTRY|ML_EXIT)
> diff --git a/fs/ocfs2/cluster/nodemanager.c b/fs/ocfs2/cluster/nodemanager.c
> index ed0c9f3..e9f1135 100644
> --- a/fs/ocfs2/cluster/nodemanager.c
> +++ b/fs/ocfs2/cluster/nodemanager.c
> @@ -711,6 +711,8 @@ static struct config_item *o2nm_node_group_make_item(struct config_group *group,
> config_item_init_type_name(&node->nd_item, name,&o2nm_node_type);
> spin_lock_init(&node->nd_lock);
>
> + mlog(ML_O2CB, "o2nm: Registering node %s\n", name);
> +
> return&node->nd_item;
> }
>
> @@ -744,6 +746,9 @@ static void o2nm_node_group_drop_item(struct config_group *group,
> }
> write_unlock(&cluster->cl_nodes_lock);
>
> + mlog(ML_O2CB, "o2nm: Unregistered node %s\n",
> + config_item_name(&node->nd_item));
> +
> config_item_put(item);
> }
>
>
next prev parent reply other threads:[~2010-10-08 0:33 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 0:15 [Ocfs2-devel] O2CB global heartbeat - hopefully final drop! Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 01/22] ocfs2/cluster: Add heartbeat mode configfs parameter Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 02/22] ocfs2: Add an incompat feature flag OCFS2_FEATURE_INCOMPAT_CLUSTERINFO Sunil Mushran
2010-10-08 23:11 ` Mark Fasheh
2010-10-08 23:26 ` Sunil Mushran
2010-10-09 0:15 ` Joel Becker
2010-10-09 11:41 ` Sunil Mushran
2010-10-09 17:35 ` Sunil Mushran
2010-10-11 21:46 ` Joel Becker
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 03/22] ocfs2: Add support for heartbeat=global mount option Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 04/22] ocfs2/dlm: Expose dlm_protocol in dlm_state Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 05/22] ocfs2/cluster: Get all heartbeat regions Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 06/22] ocfs2/dlm: Add message DLM_QUERY_REGION Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 07/22] ocfs2: Print message if user mounts without starting global heartbeat Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 08/22] ocfs2/dlm: Add message DLM_QUERY_NODEINFO Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 09/22] ocfs2/cluster: Print messages when adding/removing heartbeat regions Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 10/22] ocfs2/cluster: Print messages when adding/removing nodes Sunil Mushran
2010-10-08 0:33 ` Sunil Mushran [this message]
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 11/22] ocfs2/cluster: Check slots for unconfigured live nodes Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 12/22] ocfs2/cluster: Reorganize o2hb debugfs init Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 13/22] ocfs2/cluster: Maintain live node bitmap per heartbeat region Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 14/22] ocfs2/cluster: Track number of global heartbeat regions Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 15/22] ocfs2/cluster: Track bitmap of live " Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 16/22] ocfs2/cluster: Maintain bitmap of quorum regions Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 17/22] ocfs2/cluster: Maintain bitmap of failed regions Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 18/22] ocfs2/cluster: Create debugfs files for live, quorum and failed region bitmaps Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 19/22] ocfs2/cluster: Create debugfs dir/files for each region Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 20/22] ocfs2/cluster: Add mlogs for heartbeat up/down events Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 21/22] ocfs2/cluster: Show per region heartbeat elapsed time Sunil Mushran
2010-10-08 0:15 ` [Ocfs2-devel] [PATCH 22/22] ocfs2/dlm: Bump up dlm protocol to version 1.1 Sunil Mushran
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=4CAE66E4.8020807@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=ocfs2-devel@oss.oracle.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 NNTP newsgroup(s).