Tizen 2.1 base
[external/device-mapper.git] / lib / config / defaults.h
1 /*
2  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3  * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved.
4  *
5  * This file is part of LVM2.
6  *
7  * This copyrighted material is made available to anyone wishing to use,
8  * modify, copy, or redistribute it subject to the terms and conditions
9  * of the GNU Lesser General Public License v.2.1.
10  *
11  * You should have received a copy of the GNU Lesser General Public License
12  * along with this program; if not, write to the Free Software Foundation,
13  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
14  */
15
16 #ifndef _LVM_DEFAULTS_H
17 #define _LVM_DEFAULTS_H
18
19 #define DEFAULT_PE_ALIGN 2048
20 #define DEFAULT_PE_ALIGN_OLD 128
21
22 #define DEFAULT_ARCHIVE_ENABLED 1
23 #define DEFAULT_BACKUP_ENABLED 1
24
25 #define DEFAULT_CACHE_FILE_PREFIX ""
26
27 #define DEFAULT_ARCHIVE_DAYS 30
28 #define DEFAULT_ARCHIVE_NUMBER 10
29
30 #define DEFAULT_DEV_DIR "/dev"
31 #define DEFAULT_PROC_DIR "/proc"
32 #define DEFAULT_SYSFS_SCAN 1
33 #define DEFAULT_MD_COMPONENT_DETECTION 1
34 #define DEFAULT_MD_CHUNK_ALIGNMENT 1
35 #define DEFAULT_IGNORE_SUSPENDED_DEVICES 1
36 #define DEFAULT_DISABLE_AFTER_ERROR_COUNT 0
37 #define DEFAULT_REQUIRE_RESTOREFILE_WITH_UUID 1
38 #define DEFAULT_DATA_ALIGNMENT_OFFSET_DETECTION 1
39 #define DEFAULT_DATA_ALIGNMENT_DETECTION 1
40
41 #define DEFAULT_LOCKING_LIB "liblvm2clusterlock.so"
42 #define DEFAULT_FALLBACK_TO_LOCAL_LOCKING 1
43 #define DEFAULT_FALLBACK_TO_CLUSTERED_LOCKING 1
44 #define DEFAULT_WAIT_FOR_LOCKS 1
45 #define DEFAULT_PRIORITISE_WRITE_LOCKS 1
46 #define DEFAULT_USE_MLOCKALL 0
47 #define DEFAULT_METADATA_READ_ONLY 0
48
49 #define DEFAULT_MIRRORLOG "disk"
50 #define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
51 #define DEFAULT_MIRROR_IMAGE_FAULT_POLICY "remove"
52 #define DEFAULT_MIRROR_MAX_IMAGES 8 /* limited by kernel DM_KCOPYD_MAX_REGIONS */
53 #define DEFAULT_DMEVENTD_MIRROR_LIB "libdevmapper-event-lvm2mirror.so"
54 #define DEFAULT_DMEVENTD_SNAPSHOT_LIB "libdevmapper-event-lvm2snapshot.so"
55 #define DEFAULT_DMEVENTD_MONITOR 1
56 #define DEFAULT_BACKGROUND_POLLING 1
57
58 #define DEFAULT_UMASK 0077
59
60 #ifdef LVM1_FALLBACK
61 #  define DEFAULT_FALLBACK_TO_LVM1 1
62 #else
63 #  define DEFAULT_FALLBACK_TO_LVM1 0
64 #endif
65
66 #define DEFAULT_FORMAT "lvm2"
67
68 #define DEFAULT_STRIPESIZE 64   /* KB */
69 #define DEFAULT_PVMETADATAIGNORE 0
70 #define DEFAULT_PVMETADATAIGNORE_STR "n"
71 #define DEFAULT_PVMETADATASIZE 255
72 #define DEFAULT_PVMETADATACOPIES 1
73 #define DEFAULT_VGMETADATACOPIES 0
74 #define DEFAULT_LABELSECTOR UINT64_C(1)
75 #define DEFAULT_READ_AHEAD "auto"
76 #define DEFAULT_UDEV_RULES 1
77 #define DEFAULT_UDEV_SYNC 0
78 #define DEFAULT_EXTENT_SIZE 4096        /* In KB */
79 #define DEFAULT_MAX_PV 0
80 #define DEFAULT_MAX_LV 0
81 #define DEFAULT_ALLOC_POLICY ALLOC_NORMAL
82 #define DEFAULT_CLUSTERED 0
83
84 #define DEFAULT_MSG_PREFIX "  "
85 #define DEFAULT_CMD_NAME 0
86 #define DEFAULT_OVERWRITE 0
87
88 #ifndef DEFAULT_LOG_FACILITY
89 #  define DEFAULT_LOG_FACILITY LOG_USER
90 #endif
91
92 #define DEFAULT_SYSLOG 1
93 #define DEFAULT_VERBOSE 0
94 #define DEFAULT_LOGLEVEL 0
95 #define DEFAULT_INDENT 1
96 #define DEFAULT_ABORT_ON_INTERNAL_ERRORS 0
97 #define DEFAULT_UNITS "h"
98 #define DEFAULT_SUFFIX 1
99 #define DEFAULT_HOSTTAGS 0
100
101 #ifndef DEFAULT_SI_UNIT_CONSISTENCY
102 #  define DEFAULT_SI_UNIT_CONSISTENCY 1
103 #endif
104
105 #ifdef DEVMAPPER_SUPPORT
106 #  define DEFAULT_ACTIVATION 1
107 #  define DEFAULT_RESERVED_MEMORY 8192
108 #  define DEFAULT_RESERVED_STACK 256
109 #  define DEFAULT_PROCESS_PRIORITY -18
110 #else
111 #  define DEFAULT_ACTIVATION 0
112 #endif
113
114 #define DEFAULT_STRIPE_FILLER "error"
115 #define DEFAULT_MIRROR_REGION_SIZE 512  /* KB */
116 #define DEFAULT_INTERVAL 15
117
118 #ifdef READLINE_SUPPORT
119 #  define DEFAULT_MAX_HISTORY 100
120 #endif
121
122 #define DEFAULT_MAX_ERROR_COUNT NO_DEV_ERROR_COUNT_LIMIT
123
124 #define DEFAULT_REP_ALIGNED 1
125 #define DEFAULT_REP_BUFFERED 1
126 #define DEFAULT_REP_COLUMNS_AS_ROWS 0
127 #define DEFAULT_REP_HEADINGS 1
128 #define DEFAULT_REP_PREFIXES 0
129 #define DEFAULT_REP_QUOTED 1
130 #define DEFAULT_REP_SEPARATOR " "
131
132 #define DEFAULT_LVS_COLS "lv_name,vg_name,lv_attr,lv_size,origin,snap_percent,move_pv,mirror_log,copy_percent,convert_lv"
133 #define DEFAULT_VGS_COLS "vg_name,pv_count,lv_count,snap_count,vg_attr,vg_size,vg_free"
134 #define DEFAULT_PVS_COLS "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free"
135 #define DEFAULT_SEGS_COLS "lv_name,vg_name,lv_attr,stripes,segtype,seg_size"
136 #define DEFAULT_PVSEGS_COLS "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,pvseg_start,pvseg_size"
137
138 #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"
139 #define DEFAULT_VGS_COLS_VERB "vg_name,vg_attr,vg_extent_size,pv_count,lv_count,snap_count,vg_size,vg_free,vg_uuid"
140 #define DEFAULT_PVS_COLS_VERB "pv_name,vg_name,pv_fmt,pv_attr,pv_size,pv_free,dev_size,pv_uuid"
141 #define DEFAULT_SEGS_COLS_VERB "lv_name,vg_name,lv_attr,seg_start,seg_size,stripes,segtype,stripesize,chunksize"
142 #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"
143
144 #define DEFAULT_LVS_SORT "vg_name,lv_name"
145 #define DEFAULT_VGS_SORT "vg_name"
146 #define DEFAULT_PVS_SORT "pv_name"
147 #define DEFAULT_SEGS_SORT "vg_name,lv_name,seg_start"
148 #define DEFAULT_PVSEGS_SORT "pv_name,pvseg_start"
149
150 #define DEFAULT_MIRROR_DEVICE_FAULT_POLICY "remove"
151 #define DEFAULT_MIRROR_LOG_FAULT_POLICY "allocate"
152 #define DEFAULT_SNAPSHOT_AUTOEXTEND_THRESHOLD 100
153 #define DEFAULT_SNAPSHOT_AUTOEXTEND_PERCENT 20
154
155 #endif                          /* _LVM_DEFAULTS_H */