~wb-munzinger/+junk/ocfs2-tools

« back to all changes in this revision

Viewing changes to libocfs2/dlm.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2009-11-05 07:59:29 UTC
  • mfrom: (1.1.8 upstream) (0.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091105075929-q0nlwa4pco86t5eb
Tags: 1.4.3-1
* New upstream release.
* Replace libreadline-dev Build-Depends by libreadline5-dev
  (Closes: #553819).
* Update to Standards-Version 3.8.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c; c-basic-offset: 8; -*-
2
 
 * vim: noexpandtab sw=8 ts=8 sts=0:
3
 
 *
4
 
 * dlm.h
5
 
 *
6
 
 * Interface the OCFS2 userspace library to the userspace DLM library
7
 
 *
8
 
 * Copyright (C) 2004 Oracle.  All rights reserved.
9
 
 *
10
 
 * This program is free software; you can redistribute it and/or
11
 
 * modify it under the terms of the GNU General Public
12
 
 * License, version 2,  as published by the Free Software Foundation.
13
 
 * 
14
 
 * This program is distributed in the hope that it will be useful,
15
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
 * General Public License for more details.
18
 
 * 
19
 
 * You should have received a copy of the GNU General Public
20
 
 * License along with this program; if not, write to the
21
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22
 
 * Boston, MA 021110-1307, USA.
23
 
 *
24
 
 * Authors: Mark Fasheh
25
 
 */
26
 
 
27
 
#ifndef _DLM_H
28
 
#define _DLM_H
29
 
 
30
 
errcode_t ocfs2_lock_down_cluster(ocfs2_filesys *fs);
31
 
errcode_t ocfs2_release_cluster(ocfs2_filesys *fs);
32
 
 
33
 
errcode_t ocfs2_initialize_dlm(ocfs2_filesys *fs);
34
 
errcode_t ocfs2_shutdown_dlm(ocfs2_filesys *fs);
35
 
 
36
 
errcode_t ocfs2_super_lock(ocfs2_filesys *fs);
37
 
errcode_t ocfs2_super_unlock(ocfs2_filesys *fs);
38
 
 
39
 
errcode_t ocfs2_meta_lock(ocfs2_filesys *fs,
40
 
                          ocfs2_cached_inode *inode,
41
 
                          enum o2dlm_lock_level level,
42
 
                          int flags);
43
 
errcode_t ocfs2_meta_unlock(ocfs2_filesys *fs,
44
 
                            ocfs2_cached_inode *ci);
45
 
 
46
 
#endif  /* _DLM_H */