1*8499796aSchristos /* $NetBSD: lvm-globals.h,v 1.2 2011/05/15 01:13:29 christos 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 24*8499796aSchristos #ifdef __NetBSD__ 25*8499796aSchristos void init_operator(int operator); 26*8499796aSchristos int is_operator(void); 27*8499796aSchristos #endif 28*8499796aSchristos 2956a34939Shaad void init_verbose(int level); 3056a34939Shaad void init_test(int level); 3156a34939Shaad void init_md_filtering(int level); 3256a34939Shaad void init_pvmove(int level); 3356a34939Shaad void init_full_scan_done(int level); 3456a34939Shaad void init_trust_cache(int trustcache); 3556a34939Shaad void init_debug(int level); 3656a34939Shaad void init_cmd_name(int status); 3756a34939Shaad void init_ignorelockingfailure(int level); 3856a34939Shaad void init_lockingfailed(int level); 3956a34939Shaad void init_security_level(int level); 4056a34939Shaad void init_mirror_in_sync(int in_sync); 4156a34939Shaad void init_dmeventd_monitor(int reg); 4256a34939Shaad void init_ignore_suspended_devices(int ignore); 4356a34939Shaad void init_error_message_produced(int produced); 44bec4d750Shaad void init_is_static(unsigned value); 4556a34939Shaad 4656a34939Shaad void set_cmd_name(const char *cmd_name); 4756a34939Shaad 4856a34939Shaad int test_mode(void); 4956a34939Shaad int md_filtering(void); 5056a34939Shaad int pvmove_mode(void); 5156a34939Shaad int full_scan_done(void); 5256a34939Shaad int trust_cache(void); 5356a34939Shaad int verbose_level(void); 5456a34939Shaad int debug_level(void); 5556a34939Shaad int ignorelockingfailure(void); 5656a34939Shaad int lockingfailed(void); 5756a34939Shaad int security_level(void); 5856a34939Shaad int mirror_in_sync(void); 5956a34939Shaad int ignore_suspended_devices(void); 6056a34939Shaad const char *log_command_name(void); 61bec4d750Shaad unsigned is_static(void); 6256a34939Shaad 6356a34939Shaad #define DMEVENTD_MONITOR_IGNORE -1 6456a34939Shaad int dmeventd_monitor_mode(void); 6556a34939Shaad 6656a34939Shaad #endif 67