[Ocfs2-tools-commits] mfasheh commits r625 - trunk/libocfs2/include

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Jan 31 13:56:40 CST 2005


Author: mfasheh
Date: 2005-01-31 13:56:38 -0600 (Mon, 31 Jan 2005)
New Revision: 625

Added:
   trunk/libocfs2/include/dlm.h
Log:
* very preliminary libocfs2 api for cluster locking



Added: trunk/libocfs2/include/dlm.h
===================================================================
--- trunk/libocfs2/include/dlm.h	2005-01-31 18:15:26 UTC (rev 624)
+++ trunk/libocfs2/include/dlm.h	2005-01-31 19:56:38 UTC (rev 625)
@@ -0,0 +1,48 @@
+/* -*- mode: c; c-basic-offset: 8; -*-
+ * vim: noexpandtab sw=8 ts=8 sts=0:
+ *
+ * dlm.h
+ *
+ * Interface the OCFS2 userspace library to the userspace DLM library
+ *
+ * Copyright (C) 2004 Oracle.  All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public
+ * License, version 2,  as published by the Free Software Foundation.
+ * 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 021110-1307, USA.
+ *
+ * Authors: Mark Fasheh
+ */
+
+#ifndef _DLM_H
+#define _DLM_H
+
+#include "d2dlm.h"
+
+errcode_t ocfs2_lock_down_cluster(ocfs2_filesys *sb);
+errcode_t ocfs2_release_cluster(ocfs2_filesys *sb);
+
+errcode_t ocfs2_initialize_dlm(ocfs2_filesys *sb);
+errcode_t ocfs2_shutdown_dlm(ocfs2_filesys *sb);
+
+errcode_t ocfs2_super_lock(ocfs2_filesys *sb);
+errcode_t ocfs2_super_unlock(ocfs2_filesys *sb);
+
+errcode_t ocfs2_meta_lock(ocfs2_filesys *sb,
+			  ocfs2_cached_inode *inode,
+			  enum o2dlm_lock_level level,
+			  int flags);
+errcode_t ocfs2_meta_unlock(ocfs2_filesys *sb,
+			    ocfs2_cached_inode *inode);
+
+#endif  /* _DLM_H */



More information about the Ocfs2-tools-commits mailing list