Tizen 2.1 base
[external/device-mapper.git] / daemons / clvmd / lvm-functions.h
1 /*
2  * Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved.
3  * Copyright (C) 2004-2010 Red Hat, Inc. All rights reserved.
4  *
5  * This file is part of LVM2.
6  *
7  * This copyrighted material is made available to anyone wishing to use,
8  * modify, copy, or redistribute it subject to the terms and conditions
9  * of the GNU General Public License v.2.
10  *
11  * You should have received a copy of the GNU General Public License
12  * along with this program; if not, write to the Free Software Foundation,
13  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
14  */
15
16 /* Functions in lvm-functions.c */
17
18 #ifndef _LVM_FUNCTIONS_H
19 #define _LVM_FUNCTIONS_H
20
21 extern int pre_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
22                        char *resource);
23 extern int do_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
24                       char *resource);
25 extern const char *do_lock_query(char *resource);
26 extern int post_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
27                         char *resource);
28 extern int do_check_lvm1(const char *vgname);
29 extern int do_refresh_cache(void);
30 extern int init_clvm(int using_gulm, char **argv);
31 extern void destroy_lvm(void);
32 extern void init_lvhash(void);
33 extern void destroy_lvhash(void);
34 extern void lvm_do_backup(const char *vgname);
35 extern char *get_last_lvm_error(void);
36 extern void do_lock_vg(unsigned char command, unsigned char lock_flags,
37                       char *resource);
38 extern struct dm_hash_node *get_next_excl_lock(struct dm_hash_node *v, char **name);
39
40 #endif