xref: /netbsd-src/external/gpl2/lvm2/dist/daemons/clvmd/lvm-functions.h (revision 10ad5ffa714ce1a679dcc9dd8159648df2d67b5a)
1 /*	$NetBSD: lvm-functions.h,v 1.1.1.1 2008/12/22 00:18:52 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 int post_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
28 			char *resource);
29 extern int do_check_lvm1(const char *vgname);
30 extern int do_refresh_cache(void);
31 extern int init_lvm(int using_gulm);
32 extern void init_lvhash(void);
33 extern void lvm_do_backup(const char *vgname);
34 extern int hold_unlock(char *resource);
35 extern int hold_lock(char *resource, int mode, int flags);
36 extern void unlock_all(void);
37 extern char *get_last_lvm_error(void);
38 extern void drop_metadata(const char *vgname);
39 
40 #endif
41