1 /*	$NetBSD: lvm-globals.h,v 1.2 2011/01/05 14:57:28 haad Exp $	*/
2 
3 /*
4  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
5  * Copyright (C) 2004-2007 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 Lesser General Public License v.2.1.
12  *
13  * You should have received a copy of the GNU Lesser 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 #ifndef _LVM_GLOBALS_H
19 #define _LVM_GLOBALS_H
20 
21 #define VERBOSE_BASE_LEVEL _LOG_WARN
22 #define SECURITY_LEVEL 0
23 
24 #ifdef __NetBSD__
25 void init_operator(int operator);
26 int  is_operator(void);
27 #endif
28 
29 void init_verbose(int level);
30 void init_test(int level);
31 void init_md_filtering(int level);
32 void init_pvmove(int level);
33 void init_full_scan_done(int level);
34 void init_trust_cache(int trustcache);
35 void init_debug(int level);
36 void init_cmd_name(int status);
37 void init_ignorelockingfailure(int level);
38 void init_lockingfailed(int level);
39 void init_security_level(int level);
40 void init_mirror_in_sync(int in_sync);
41 void init_dmeventd_monitor(int reg);
42 void init_ignore_suspended_devices(int ignore);
43 void init_error_message_produced(int produced);
44 void init_is_static(unsigned value);
45 
46 void set_cmd_name(const char *cmd_name);
47 
48 int test_mode(void);
49 int md_filtering(void);
50 int pvmove_mode(void);
51 int full_scan_done(void);
52 int trust_cache(void);
53 int verbose_level(void);
54 int debug_level(void);
55 int ignorelockingfailure(void);
56 int lockingfailed(void);
57 int security_level(void);
58 int mirror_in_sync(void);
59 int ignore_suspended_devices(void);
60 const char *log_command_name(void);
61 unsigned is_static(void);
62 
63 #define DMEVENTD_MONITOR_IGNORE -1
64 int dmeventd_monitor_mode(void);
65 
66 #endif
67