[Ocfs2-commits] mfasheh commits r1658 - branches/dlm-glue/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Fri Nov 19 21:00:51 CST 2004


Author: mfasheh
Date: 2004-11-19 21:00:49 -0600 (Fri, 19 Nov 2004)
New Revision: 1658

Modified:
   branches/dlm-glue/src/dlmglue.c
Log:
* remove the stub functions. things need to be tested for real now.



Modified: branches/dlm-glue/src/dlmglue.c
===================================================================
--- branches/dlm-glue/src/dlmglue.c	2004-11-20 02:06:22 UTC (rev 1657)
+++ branches/dlm-glue/src/dlmglue.c	2004-11-20 03:00:49 UTC (rev 1658)
@@ -54,53 +54,6 @@
 
 #define OCFS_DEBUG_CONTEXT    OCFS_DEBUG_CONTEXT_DLMGLUE
 
-#if 0
-#warning REMOVE THESE STUBS
-
-dlm_status dlmlock(dlm_ctxt *dlm,
-		   int mode,
-		   dlm_lockstatus *lksb,
-		   int flags,
-		   char *name, 
-		   dlm_astlockfunc_t *ast,
-		   void *data,
-		   dlm_bastlockfunc_t *bast)
-{
-	lksb->status = DLM_NORMAL;
-	ast(data);
-	return DLM_NORMAL;
-}
-dlm_status dlmunlock(dlm_ctxt *dlm,
-		     dlm_lockstatus *lksb,
-		     int flags,
-		     dlm_astunlockfunc_t *unlockast,
-		     void *data)
-{
-	lksb->status = DLM_NORMAL;
-	unlockast(data, DLM_NORMAL);
-	return DLM_NORMAL;
-}
-dlm_ctxt * dlm_register_domain(char *domain, char *group_name, u32 key)
-{
-	dlm_ctxt * ret = kmalloc(sizeof(dlm_ctxt), GFP_KERNEL);
-	memset(ret, 0, sizeof(dlm_ctxt));
-	return ret;
-}
-void dlm_unregister_domain(dlm_ctxt *dlm)
-{
-	kfree(dlm);
-}
-
-int hb_register_callback(int type, hb_cb_func *func, void *data, int priority)
-{
-	return 0;
-}
-int hb_unregister_callback(int type, hb_cb_func *func, void *data)
-{
-	return 0;
-}
-#endif
-
 /* lock ids are made up in the following manner:
  * name[0]     --> type
  * name[1-6]   --> 6 pad characters, reserved for now



More information about the Ocfs2-commits mailing list