[Ocfs2-tools-commits] manish commits r829 - trunk/ocfs2console/ocfs2interface

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Tue Apr 19 18:32:21 CDT 2005


Author: manish
Date: 2005-04-19 18:32:19 -0500 (Tue, 19 Apr 2005)
New Revision: 829

Modified:
   trunk/ocfs2console/ocfs2interface/o2cbmodule.c
Log:
wrap get_hb_ctl_path


Modified: trunk/ocfs2console/ocfs2interface/o2cbmodule.c
===================================================================
--- trunk/ocfs2console/ocfs2interface/o2cbmodule.c	2005-04-19 23:30:41 UTC (rev 828)
+++ trunk/ocfs2console/ocfs2interface/o2cbmodule.c	2005-04-19 23:32:19 UTC (rev 829)
@@ -492,10 +492,22 @@
   return Py_None;
 }
 
+static PyObject *
+get_hb_ctl_path (PyObject *self)
+{
+  errcode_t ret;
+  char      hb_ctl_path[PATH_MAX];
+
+  CHECK_ERROR (o2cb_get_hb_ctl_path (hb_ctl_path, sizeof (hb_ctl_path)));
+
+  return PyString_FromString (hb_ctl_path);
+}
+
 static PyMethodDef o2cb_methods[] = {
   {"list_clusters", (PyCFunction)list_clusters, METH_NOARGS},
   {"create_heartbeat_region_disk", (PyCFunction)create_heartbeat_region_disk, METH_VARARGS | METH_KEYWORDS},
   {"remove_heartbeat_region_disk", (PyCFunction)remove_heartbeat_region_disk, METH_VARARGS | METH_KEYWORDS},
+  {"get_hb_ctl_path", (PyCFunction)get_hb_ctl_path, METH_NOARGS},
   {NULL,       NULL}    /* sentinel */
 };
 



More information about the Ocfs2-tools-commits mailing list