[Ocfs2-tools-devel] [PATCH] libocfs2: remove died dlm.h

Coly Li coly.li at suse.de
Tue Jun 23 11:35:47 PDT 2009


Header libocfs2/dlm.h is no use any more, all its declared prototypes are moved
to other header file now. This patch removes libocfs2/dlm.h and its reference in
libocfs2/Makefile from ocfs2-tools repository.

Signed-off-by: Coly Li <coly.li at suse.de>
Cc: Mark Fasheh <mfasheh at suse.com>
---
 libocfs2/Makefile |    1 -
 libocfs2/dlm.h    |   46 ----------------------------------------------
 2 files changed, 0 insertions(+), 47 deletions(-)

diff --git a/libocfs2/Makefile b/libocfs2/Makefile
index b75cea6..48cfe80 100644
--- a/libocfs2/Makefile
+++ b/libocfs2/Makefile
@@ -82,7 +82,6 @@ HFILES =		\
 	crc32table.h	\
 	dir_iterate.h	\
 	dir_util.h	\
-	dlm.h		\
 	extent_map.h

 HFILES_GEN = ocfs2_err.h
diff --git a/libocfs2/dlm.h b/libocfs2/dlm.h
deleted file mode 100644
index 2db0e8a..0000000
--- a/libocfs2/dlm.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/* -*- 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
-
-errcode_t ocfs2_lock_down_cluster(ocfs2_filesys *fs);
-errcode_t ocfs2_release_cluster(ocfs2_filesys *fs);
-
-errcode_t ocfs2_initialize_dlm(ocfs2_filesys *fs);
-errcode_t ocfs2_shutdown_dlm(ocfs2_filesys *fs);
-
-errcode_t ocfs2_super_lock(ocfs2_filesys *fs);
-errcode_t ocfs2_super_unlock(ocfs2_filesys *fs);
-
-errcode_t ocfs2_meta_lock(ocfs2_filesys *fs,
-			  ocfs2_cached_inode *inode,
-			  enum o2dlm_lock_level level,
-			  int flags);
-errcode_t ocfs2_meta_unlock(ocfs2_filesys *fs,
-			    ocfs2_cached_inode *ci);
-
-#endif  /* _DLM_H */
-- 
Coly Li
SuSE Labs



More information about the Ocfs2-tools-devel mailing list