Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / contrib / lvm2 / dist / daemons / clvmd / lvm-functions.h
1 /*      $NetBSD: lvm-functions.h,v 1.1.1.2 2009/12/02 00:27:06 haad Exp $       */
2
3 /*
4  * Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved.
5  * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
6  *
7  * This file is part of LVM2.
8  *
9  * This copyrighted material is made available to anyone wishing to use,
10  * modify, copy, or redistribute it subject to the terms and conditions
11  * of the GNU General Public License v.2.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software Foundation,
15  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16  */
17
18 /* Functions in lvm-functions.c */
19
20 #ifndef _LVM_FUNCTIONS_H
21 #define _LVM_FUNCTIONS_H
22
23 extern int pre_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
24                        char *resource);
25 extern int do_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
26                       char *resource);
27 extern const char *do_lock_query(char *resource);
28 extern int post_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
29                         char *resource);
30 extern int do_check_lvm1(const char *vgname);
31 extern int do_refresh_cache(void);
32 extern int init_lvm(int using_gulm);
33 extern void destroy_lvm(void);
34 extern void init_lvhash(void);
35 extern void destroy_lvhash(void);
36 extern void lvm_do_backup(const char *vgname);
37 extern int hold_unlock(char *resource);
38 extern int hold_lock(char *resource, int mode, int flags);
39 extern char *get_last_lvm_error(void);
40 extern void drop_metadata(const char *vgname);
41
42 #endif