4 * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
5 * Copyright (C) 2004-2007 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 Lesser General Public License v.2.1.
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
18 #ifndef _LVM_GLOBALS_H
19 #define _LVM_GLOBALS_H
21 #define VERBOSE_BASE_LEVEL _LOG_WARN
22 #define SECURITY_LEVEL 0
24 void init_verbose(int level
);
25 void init_test(int level
);
26 void init_md_filtering(int level
);
27 void init_pvmove(int level
);
28 void init_full_scan_done(int level
);
29 void init_trust_cache(int trustcache
);
30 void init_debug(int level
);
31 void init_cmd_name(int status
);
32 void init_ignorelockingfailure(int level
);
33 void init_lockingfailed(int level
);
34 void init_security_level(int level
);
35 void init_mirror_in_sync(int in_sync
);
36 void init_dmeventd_monitor(int reg
);
37 void init_ignore_suspended_devices(int ignore
);
38 void init_error_message_produced(int produced
);
39 void init_is_static(unsigned value
);
41 void set_cmd_name(const char *cmd_name
);
44 int md_filtering(void);
45 int pvmove_mode(void);
46 int full_scan_done(void);
47 int trust_cache(void);
48 int verbose_level(void);
49 int debug_level(void);
50 int ignorelockingfailure(void);
51 int lockingfailed(void);
52 int security_level(void);
53 int mirror_in_sync(void);
54 int ignore_suspended_devices(void);
55 const char *log_command_name(void);
56 unsigned is_static(void);
58 #define DMEVENTD_MONITOR_IGNORE -1
59 int dmeventd_monitor_mode(void);