1*bec4d750Shaad /*	$NetBSD: lvm-globals.h,v 1.1.1.2 2009/02/18 11:16:46 haad Exp $	*/
256a34939Shaad 
356a34939Shaad /*
456a34939Shaad  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
556a34939Shaad  * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
656a34939Shaad  *
756a34939Shaad  * This file is part of LVM2.
856a34939Shaad  *
956a34939Shaad  * This copyrighted material is made available to anyone wishing to use,
1056a34939Shaad  * modify, copy, or redistribute it subject to the terms and conditions
1156a34939Shaad  * of the GNU Lesser General Public License v.2.1.
1256a34939Shaad  *
1356a34939Shaad  * You should have received a copy of the GNU Lesser General Public License
1456a34939Shaad  * along with this program; if not, write to the Free Software Foundation,
1556a34939Shaad  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
1656a34939Shaad  */
1756a34939Shaad 
1856a34939Shaad #ifndef _LVM_GLOBALS_H
1956a34939Shaad #define _LVM_GLOBALS_H
2056a34939Shaad 
2156a34939Shaad #define VERBOSE_BASE_LEVEL _LOG_WARN
2256a34939Shaad #define SECURITY_LEVEL 0
2356a34939Shaad 
2456a34939Shaad void init_verbose(int level);
2556a34939Shaad void init_test(int level);
2656a34939Shaad void init_md_filtering(int level);
2756a34939Shaad void init_pvmove(int level);
2856a34939Shaad void init_full_scan_done(int level);
2956a34939Shaad void init_trust_cache(int trustcache);
3056a34939Shaad void init_debug(int level);
3156a34939Shaad void init_cmd_name(int status);
3256a34939Shaad void init_ignorelockingfailure(int level);
3356a34939Shaad void init_lockingfailed(int level);
3456a34939Shaad void init_security_level(int level);
3556a34939Shaad void init_mirror_in_sync(int in_sync);
3656a34939Shaad void init_dmeventd_monitor(int reg);
3756a34939Shaad void init_ignore_suspended_devices(int ignore);
3856a34939Shaad void init_error_message_produced(int produced);
39*bec4d750Shaad void init_is_static(unsigned value);
4056a34939Shaad 
4156a34939Shaad void set_cmd_name(const char *cmd_name);
4256a34939Shaad 
4356a34939Shaad int test_mode(void);
4456a34939Shaad int md_filtering(void);
4556a34939Shaad int pvmove_mode(void);
4656a34939Shaad int full_scan_done(void);
4756a34939Shaad int trust_cache(void);
4856a34939Shaad int verbose_level(void);
4956a34939Shaad int debug_level(void);
5056a34939Shaad int ignorelockingfailure(void);
5156a34939Shaad int lockingfailed(void);
5256a34939Shaad int security_level(void);
5356a34939Shaad int mirror_in_sync(void);
5456a34939Shaad int ignore_suspended_devices(void);
5556a34939Shaad const char *log_command_name(void);
56*bec4d750Shaad unsigned is_static(void);
5756a34939Shaad 
5856a34939Shaad #define DMEVENTD_MONITOR_IGNORE -1
5956a34939Shaad int dmeventd_monitor_mode(void);
6056a34939Shaad 
6156a34939Shaad #endif
62