import source from lvm2 2.02.79
[external/device-mapper.git] / lib / misc / lvm-globals.h
1 /*
2  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.  
3  * Copyright (C) 2004-2007 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 Lesser General Public License v.2.1.
10  *
11  * You should have received a copy of the GNU Lesser 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 #ifndef _LVM_GLOBALS_H
17 #define _LVM_GLOBALS_H
18
19 #define VERBOSE_BASE_LEVEL _LOG_WARN
20 #define SECURITY_LEVEL 0
21
22 void init_verbose(int level);
23 void init_test(int level);
24 void init_md_filtering(int level);
25 void init_pvmove(int level);
26 void init_full_scan_done(int level);
27 void init_trust_cache(int trustcache);
28 void init_debug(int level);
29 void init_cmd_name(int status);
30 void init_ignorelockingfailure(int level);
31 void init_lockingfailed(int level);
32 void init_security_level(int level);
33 void init_mirror_in_sync(int in_sync);
34 void init_dmeventd_monitor(int reg);
35 void init_background_polling(int polling);
36 void init_ignore_suspended_devices(int ignore);
37 void init_error_message_produced(int produced);
38 void init_is_static(unsigned value);
39 void init_udev_checking(int checking);
40 void init_dev_disable_after_error_count(int value);
41
42 void set_cmd_name(const char *cmd_name);
43 void set_sysfs_dir_path(const char *path);
44
45 int test_mode(void);
46 int md_filtering(void);
47 int pvmove_mode(void);
48 int full_scan_done(void);
49 int trust_cache(void);
50 int verbose_level(void);
51 int debug_level(void);
52 int ignorelockingfailure(void);
53 int lockingfailed(void);
54 int security_level(void);
55 int mirror_in_sync(void);
56 int background_polling(void);
57 int ignore_suspended_devices(void);
58 const char *log_command_name(void);
59 unsigned is_static(void);
60 int udev_checking(void);
61 const char *sysfs_dir_path(void);
62
63 #define DMEVENTD_MONITOR_IGNORE -1
64 int dmeventd_monitor_mode(void);
65
66 #define NO_DEV_ERROR_COUNT_LIMIT 0
67 int dev_disable_after_error_count(void);
68
69 #endif