Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / gpl2 / lvm2 / dist / daemons / clvmd / lvm-functions.h
blobf6d4c7490f1fcb06d7b21ae654f7d521314c4e5c
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2002-2004 Sistina Software, Inc. All rights reserved.
5 * Copyright (C) 2004 Red Hat, Inc. All rights reserved.
7 * This file is part of LVM2.
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.
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
18 /* Functions in lvm-functions.c */
20 #ifndef _LVM_FUNCTIONS_H
21 #define _LVM_FUNCTIONS_H
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);
42 #endif