2002-01-07 14:12:11 +03:00
/*
2004-03-30 23:35:44 +04:00
* Copyright ( C ) 2001 - 2004 Sistina Software , Inc . All rights reserved .
2007-08-21 00:55:30 +04:00
* Copyright ( C ) 2004 - 2007 Red Hat , Inc . All rights reserved .
2002-01-07 14:12:11 +03:00
*
2004-03-30 23:35:44 +04:00
* This file is part of LVM2 .
*
* This copyrighted material is made available to anyone wishing to use ,
* modify , copy , or redistribute it subject to the terms and conditions
2007-08-21 00:55:30 +04:00
* of the GNU Lesser General Public License v .2 .1 .
2004-03-30 23:35:44 +04:00
*
2007-08-21 00:55:30 +04:00
* You should have received a copy of the GNU Lesser General Public License
2004-03-30 23:35:44 +04:00
* along with this program ; if not , write to the Free Software Foundation ,
* Inc . , 59 Temple Place , Suite 330 , Boston , MA 02111 - 1307 USA
2002-01-07 14:12:11 +03:00
*/
# ifndef _LVM_DEFAULTS_H
# define _LVM_DEFAULTS_H
2002-01-08 22:17:08 +03:00
# define DEFAULT_ARCHIVE_ENABLED 1
# define DEFAULT_BACKUP_ENABLED 1
2002-01-07 14:12:11 +03:00
# define DEFAULT_ARCHIVE_SUBDIR "archive"
# define DEFAULT_BACKUP_SUBDIR "backup"
2007-02-28 21:27:13 +03:00
# define DEFAULT_CACHE_SUBDIR "cache"
# define DEFAULT_CACHE_FILE_PREFIX ""
2002-01-07 14:12:11 +03:00
2002-01-08 22:17:08 +03:00
# define DEFAULT_ARCHIVE_DAYS 30
# define DEFAULT_ARCHIVE_NUMBER 10
2002-01-07 14:12:11 +03:00
2002-11-18 17:01:16 +03:00
# define DEFAULT_SYS_DIR " / etc / lvm"
2002-01-07 14:12:11 +03:00
# define DEFAULT_DEV_DIR " / dev"
2002-01-16 02:34:13 +03:00
# define DEFAULT_PROC_DIR " / proc"
2004-02-13 17:46:04 +03:00
# define DEFAULT_SYSFS_SCAN 1
2004-04-16 20:12:04 +04:00
# define DEFAULT_MD_COMPONENT_DETECTION 1
2007-01-26 00:22:30 +03:00
# define DEFAULT_IGNORE_SUSPENDED_DEVICES 1
2002-01-07 14:12:11 +03:00
2002-02-08 17:28:52 +03:00
# define DEFAULT_LOCK_DIR " / var / lock / lvm"
2006-09-01 00:56:33 +04:00
# define DEFAULT_LOCKING_LIB "liblvm2clusterlock.so"
2006-09-02 05:18:17 +04:00
# define DEFAULT_FALLBACK_TO_LOCAL_LOCKING 1
# define DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING 1
2002-02-08 17:28:52 +03:00
2007-08-21 23:46:36 +04:00
# define DEFAULT_MIRRORLOG "disk"
2006-05-11 23:45:53 +04:00
# define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
# define DEFAULT_MIRROR_DEV_FAULT_POLICY "remove"
2006-01-27 22:05:05 +03:00
# define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so"
2006-05-12 23:16:48 +04:00
# define DEFAULT_DMEVENTD_MONITOR 1
2006-01-27 22:05:05 +03:00
2002-01-09 22:16:48 +03:00
# define DEFAULT_UMASK 0077
2004-04-08 19:23:23 +04:00
# ifdef LVM1_FALLBACK
# define DEFAULT_FALLBACK_TO_LVM1 1
# else
# define DEFAULT_FALLBACK_TO_LVM1 0
# endif
2002-11-18 17:01:16 +03:00
# ifdef LVM1_SUPPORT
2003-04-15 17:24:42 +04:00
# define DEFAULT_FORMAT "lvm1"
2002-11-18 17:01:16 +03:00
# else
2003-04-15 17:24:42 +04:00
# define DEFAULT_FORMAT "lvm2"
2002-11-18 17:01:16 +03:00
# endif
2002-04-24 22:20:51 +04:00
2002-12-20 02:25:55 +03:00
# define DEFAULT_STRIPESIZE 64 /* KB */
2002-11-18 17:01:16 +03:00
# define DEFAULT_PVMETADATASIZE 255
# define DEFAULT_PVMETADATACOPIES 1
2003-03-24 21:08:53 +03:00
# define DEFAULT_LABELSECTOR UINT64_C(1)
2007-11-09 19:51:54 +03:00
# define DEFAULT_READ_AHEAD "auto"
2008-01-17 18:31:18 +03:00
# define DEFAULT_EXTENT_SIZE 4096 /* In KB */
2002-05-07 16:50:01 +04:00
2002-11-18 17:01:16 +03:00
# define DEFAULT_MSG_PREFIX " "
2002-05-07 16:50:01 +04:00
# define DEFAULT_CMD_NAME 0
2002-11-18 17:01:16 +03:00
# define DEFAULT_OVERWRITE 0
# ifndef DEFAULT_LOG_FACILITY
2003-04-15 17:24:42 +04:00
# define DEFAULT_LOG_FACILITY LOG_USER
2002-11-18 17:01:16 +03:00
# endif
# define DEFAULT_SYSLOG 1
# define DEFAULT_VERBOSE 0
# define DEFAULT_LOGLEVEL 0
# define DEFAULT_INDENT 1
2002-12-12 23:55:49 +03:00
# define DEFAULT_UNITS "h"
# define DEFAULT_SUFFIX 1
2004-03-08 21:13:22 +03:00
# define DEFAULT_HOSTTAGS 0
2002-11-18 17:01:16 +03:00
2003-01-09 01:44:07 +03:00
# ifdef DEVMAPPER_SUPPORT
2003-04-15 17:24:42 +04:00
# define DEFAULT_ACTIVATION 1
2003-07-05 02:34:56 +04:00
# define DEFAULT_RESERVED_MEMORY 8192
# define DEFAULT_RESERVED_STACK 256
# define DEFAULT_PROCESS_PRIORITY -18
2003-01-09 01:44:07 +03:00
# else
2003-04-15 17:24:42 +04:00
# define DEFAULT_ACTIVATION 0
2003-01-09 01:44:07 +03:00
# endif
2002-05-07 16:50:01 +04:00
2003-04-25 02:10:56 +04:00
# define DEFAULT_STRIPE_FILLER " / dev / ioerror"
2003-05-06 16:06:02 +04:00
# define DEFAULT_MIRROR_REGION_SIZE 512 /* KB */
2003-04-30 19:27:48 +04:00
# define DEFAULT_INTERVAL 15
2003-04-25 02:10:56 +04:00
2002-01-08 22:17:08 +03:00
# ifdef READLINE_SUPPORT
2003-04-15 17:24:42 +04:00
# define DEFAULT_MAX_HISTORY 100
2002-01-08 22:17:08 +03:00
# endif
2002-12-12 23:55:49 +03:00
# define DEFAULT_REP_ALIGNED 1
# define DEFAULT_REP_BUFFERED 1
# define DEFAULT_REP_HEADINGS 1
# define DEFAULT_REP_SEPARATOR " "
2008-01-11 01:21:25 +03:00
# define DEFAULT_LVS_COLS "lv_name,vg_name,lv_attr,lv_size,origin,snap_percent,move_pv,mirror_log,copy_percent,convert_lv"
2002-12-12 23:55:49 +03:00
# define DEFAULT_VGS_COLS "vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
# define DEFAULT_PVS_COLS "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
# define DEFAULT_SEGS_COLS "lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
2005-04-20 00:58:25 +04:00
# define DEFAULT_PVSEGS_COLS "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
2002-12-12 23:55:49 +03:00
2008-01-11 01:21:25 +03:00
# define DEFAULT_LVS_COLS_VERB "lv_name,vg_name,seg_count,lv_attr,lv_size,lv_major,lv_minor,lv_kernel_major,lv_kernel_minor,origin,snap_percent,move_pv,copy_percent,mirror_log,convert_lv,lv_uuid"
2002-12-12 23:55:49 +03:00
# define DEFAULT_VGS_COLS_VERB "vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid"
2004-08-11 17:15:05 +04:00
# define DEFAULT_PVS_COLS_VERB "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
2002-12-12 23:55:49 +03:00
# define DEFAULT_SEGS_COLS_VERB "lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
2007-12-15 00:53:02 +03:00
# define DEFAULT_PVSEGS_COLS_VERB "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size,lv_name,seg_start_pe,segtype,seg_pe_ranges"
2002-12-12 23:55:49 +03:00
# define DEFAULT_LVS_SORT "vg_name,lv_name"
# define DEFAULT_VGS_SORT "vg_name"
# define DEFAULT_PVS_SORT "pv_name"
# define DEFAULT_SEGS_SORT "vg_name,lv_name,seg_start"
2005-04-20 00:58:25 +04:00
# define DEFAULT_PVSEGS_SORT "pv_name,pvseg_start"
2002-12-12 23:55:49 +03:00
2002-11-18 17:01:16 +03:00
# endif /* _LVM_DEFAULTS_H */