2004-06-24 12:02:38 +04:00
/*
* Copyright ( C ) 2002 - 2004 Sistina Software , Inc . All rights reserved .
2010-04-20 18:07:37 +04:00
* Copyright ( C ) 2004 - 2010 Red Hat , Inc . All rights reserved .
2004-06-24 12:02:38 +04:00
*
* This file is part of LVM2 .
*
* This copyrighted material is made available to anyone wishing to use ,
* modify , copy , or redistribute it subject to the terms and conditions
* of the GNU General Public License v .2 .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software Foundation ,
* Inc . , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA
*/
/* Functions in lvm-functions.c */
# ifndef _LVM_FUNCTIONS_H
# define _LVM_FUNCTIONS_H
extern int pre_lock_lv ( unsigned char lock_cmd , unsigned char lock_flags ,
char * resource ) ;
extern int do_lock_lv ( unsigned char lock_cmd , unsigned char lock_flags ,
char * resource ) ;
2009-05-19 14:38:58 +04:00
extern const char * do_lock_query ( char * resource ) ;
2004-06-24 12:02:38 +04:00
extern int post_lock_lv ( unsigned char lock_cmd , unsigned char lock_flags ,
char * resource ) ;
2007-08-07 13:06:05 +04:00
extern int do_check_lvm1 ( const char * vgname ) ;
2006-10-04 12:22:16 +04:00
extern int do_refresh_cache ( void ) ;
2011-09-25 00:48:34 +04:00
extern int init_clvm ( struct dm_hash_table * excl_uuid ) ;
2009-06-15 16:15:23 +04:00
extern void destroy_lvm ( void ) ;
2004-06-24 12:02:38 +04:00
extern void init_lvhash ( void ) ;
2009-04-21 17:11:28 +04:00
extern void destroy_lvhash ( void ) ;
2007-12-05 16:17:18 +03:00
extern void lvm_do_backup ( const char * vgname ) ;
2006-10-05 17:55:50 +04:00
extern char * get_last_lvm_error ( void ) ;
2010-01-05 19:05:12 +03:00
extern void do_lock_vg ( unsigned char command , unsigned char lock_flags ,
char * resource ) ;
2010-04-20 18:07:37 +04:00
extern struct dm_hash_node * get_next_excl_lock ( struct dm_hash_node * v , char * * name ) ;
2011-01-10 17:02:30 +03:00
void lvm_do_fs_unlock ( void ) ;
2010-08-17 20:25:32 +04:00
2004-06-24 12:02:38 +04:00
# endif