All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gihan Munasinghe <gihan@flexiant.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] o2cb_ctl -D option
Date: Sat, 05 Jan 2013 22:18:29 +0000	[thread overview]
Message-ID: <50E8A6B5.5020403@flexiant.com> (raw)

Hi

I am trying to manage the ocfs2 cluster set up using the o2cb_ctl tool 
to create cluster add nodes etc.
But I see that "o2cb_ctl -D" to delete a node it says the option is not 
yet supported.

Looking at the code (according to my very limited knowledge of it) I can 
see that two helper functions need to delete a node is actually implemented

1) in o2cb_config.h "gint o2cb_cluster_delete_node(O2CBCluster *cluster, 
const gchar *name);".  Which I think will do the deletion from the 
config structure

2) in o2cb.h "errcode_t o2cb_del_node(const char *cluster_name, const 
char *node_name);". Which seems to be removing the node from /sys/

So my question is there anything else that need to be done except for 
calling the above 2 functions and checking for error etc. Or do I need 
to worry about hart beat, locking etc.

If someone can put me in the correct direction I am more than happy to 
add that code in.

Thanks
Gihan

             reply	other threads:[~2013-01-05 22:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-05 22:18 Gihan Munasinghe [this message]
2013-01-06  2:46 ` [Ocfs2-devel] o2cb_ctl -D option 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=50E8A6B5.5020403@flexiant.com \
    --to=gihan@flexiant.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 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.