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__
25void init_operator(int operator);
26int  is_operator(void);
27#endif
28
29void init_verbose(int level);
30void init_test(int level);
31void init_md_filtering(int level);
32void init_pvmove(int level);
33void init_full_scan_done(int level);
34void init_trust_cache(int trustcache);
35void init_debug(int level);
36void init_cmd_name(int status);
37void init_ignorelockingfailure(int level);
38void init_lockingfailed(int level);
39void init_security_level(int level);
40void init_mirror_in_sync(int in_sync);
41void init_dmeventd_monitor(int reg);
42void init_ignore_suspended_devices(int ignore);
43void init_error_message_produced(int produced);
44void init_is_static(unsigned value);
45
46void set_cmd_name(const char *cmd_name);
47
48int test_mode(void);
49int md_filtering(void);
50int pvmove_mode(void);
51int full_scan_done(void);
52int trust_cache(void);
53int verbose_level(void);
54int debug_level(void);
55int ignorelockingfailure(void);
56int lockingfailed(void);
57int security_level(void);
58int mirror_in_sync(void);
59int ignore_suspended_devices(void);
60const char *log_command_name(void);
61unsigned is_static(void);
62
63#define DMEVENTD_MONITOR_IGNORE -1
64int dmeventd_monitor_mode(void);
65
66#endif
67