1 /* $NetBSD: lvm-globals.h,v 1.1.1.2 2009/02/18 11:17:17 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 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); 40 41 void set_cmd_name(const char *cmd_name); 42 43 int test_mode(void); 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); 57 58 #define DMEVENTD_MONITOR_IGNORE -1 59 int dmeventd_monitor_mode(void); 60 61 #endif 62