Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 1 | .\" -*- nroff -*- |
| 2 | .\" Copyright 2006 by Theodore Ts'o. All Rights Reserved. |
| 3 | .\" This file may be copied under the terms of the GNU Public License. |
| 4 | .\" |
| 5 | .TH mke2fs.conf 5 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@" |
| 6 | .SH NAME |
| 7 | mke2fs.conf \- Configuration file for mke2fs |
| 8 | .SH DESCRIPTION |
| 9 | .I mke2fs.conf |
| 10 | is the configuration file for |
| 11 | .BR mke2fs (8). |
| 12 | It controls the default parameters used by |
| 13 | .BR mke2fs (8) |
Theodore Ts'o | 626a2e7 | 2013-06-15 21:19:39 -0400 | [diff] [blame] | 14 | when it is creating ext2, ext3, or ext4 filesystems. |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 15 | .PP |
| 16 | The |
| 17 | .I mke2fs.conf |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 18 | file uses an INI-style format. Stanzas, or top-level sections, are |
| 19 | delimited by square braces: [ ]. Within each section, each line |
| 20 | defines a relation, which assigns tags to values, or to a subsection, |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 21 | which contains further relations or subsections. |
| 22 | .\" Tags can be assigned multiple values |
| 23 | An example of the INI-style format used by this configuration file |
| 24 | follows below: |
| 25 | .P |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 26 | [section1] |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 27 | .br |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 28 | tag1 = value_a |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 29 | .br |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 30 | tag1 = value_b |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 31 | .br |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 32 | tag2 = value_c |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 33 | .P |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 34 | [section 2] |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 35 | .br |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 36 | tag3 = { |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 37 | .br |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 38 | subtag1 = subtag_value_a |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 39 | .br |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 40 | subtag1 = subtag_value_b |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 41 | .br |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 42 | subtag2 = subtag_value_c |
| 43 | .br |
| 44 | } |
| 45 | .br |
| 46 | tag1 = value_d |
| 47 | .br |
| 48 | tag2 = value_e |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 49 | .br |
| 50 | } |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 51 | .P |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 52 | Comments are delimited by a semicolon (';') or a hash ('#') character |
| 53 | at the beginning of the comment, and are terminated by the end of |
| 54 | line character. |
| 55 | .P |
| 56 | Tags and values must be quoted using double quotes if they contain |
| 57 | spaces. Within a quoted string, the standard backslash interpretations |
| 58 | apply: "\en" (for the newline character), |
| 59 | "\et" (for the tab character), "\eb" (for the backspace character), |
| 60 | and "\e\e" (for the backslash character). |
| 61 | .P |
Theodore Ts'o | 27b422f | 2011-09-30 18:32:44 -0400 | [diff] [blame] | 62 | Some relations expect a boolean value. The parser is quite liberal on |
| 63 | recognizing ``yes'', '`y'', ``true'', ``t'', ``1'', ``on'', etc. as a |
| 64 | boolean true value, and ``no'', ``n'', ``false'', ``nil'', ``0'', |
| 65 | ``off'' as a boolean false value. |
| 66 | .P |
Theodore Ts'o | 9447f38 | 2006-05-22 17:59:37 -0400 | [diff] [blame] | 67 | The following stanzas are used in the |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 68 | .I mke2fs.conf |
| 69 | file. They will be described in more detail in future sections of this |
| 70 | document. |
| 71 | .TP |
| 72 | .I [defaults] |
Theodore Ts'o | 4c2b28a | 2011-06-14 14:17:56 -0400 | [diff] [blame] | 73 | Contains relations which define the default parameters |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 74 | used by |
| 75 | .BR mke2fs (8). |
| 76 | In general, these defaults may be overridden by a definition in the |
| 77 | .B fs_types |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 78 | stanza, or by an command-line option provided by the user. |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 79 | .TP |
| 80 | .I [fs_types] |
| 81 | Contains relations which define defaults that should be used for specific |
| 82 | filesystem types. The filesystem type can be specified explicitly using |
| 83 | the |
| 84 | .B -T |
| 85 | option to |
| 86 | .BR mke2fs (8). |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 87 | .SH THE [defaults] STANZA |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 88 | The following relations are defined in the |
| 89 | .I [defaults] |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 90 | stanza. |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 91 | .TP |
| 92 | .I base_features |
| 93 | This relation specifies the filesystems features which are enabled in |
Theodore Ts'o | 9447f38 | 2006-05-22 17:59:37 -0400 | [diff] [blame] | 94 | newly created filesystems. It may be overridden by the |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 95 | .I base_features |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 96 | relation found in the filesystem or usage type subsection of |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 97 | the |
| 98 | .I [fs_types] |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 99 | stanza. |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 100 | .TP |
| 101 | .I default_features |
| 102 | This relation specifies a set of features that should be added or |
| 103 | removed to the features listed in the |
| 104 | .I base_features |
Theodore Ts'o | 9447f38 | 2006-05-22 17:59:37 -0400 | [diff] [blame] | 105 | relation. It may be overridden by the filesystem-specific |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 106 | .I default_features |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 107 | in the filesystem or usage type subsection of |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 108 | .IR [fs_types] , |
| 109 | and by the |
| 110 | .B -O |
| 111 | command-line option |
| 112 | to |
| 113 | .BR mke2fs (8). |
| 114 | .TP |
Eric Sandeen | 3daf592 | 2011-02-17 15:55:15 -0600 | [diff] [blame] | 115 | .I enable_periodic_fsck |
Theodore Ts'o | 27b422f | 2011-09-30 18:32:44 -0400 | [diff] [blame] | 116 | This boolean relation specifies whether periodic filesystem checks should be |
| 117 | enforced at boot time. If set to true, checks will be forced every |
Eric Sandeen | 3daf592 | 2011-02-17 15:55:15 -0600 | [diff] [blame] | 118 | 180 days, or after a random number of mounts. These values may |
| 119 | be changed later via the |
| 120 | .B -i |
| 121 | and |
| 122 | .B -c |
| 123 | command-line options to |
| 124 | .BR tune2fs (8). |
| 125 | .TP |
Aneesh Kumar K.V | b626b39 | 2007-08-13 15:56:26 +0530 | [diff] [blame] | 126 | .I force_undo |
Theodore Ts'o | 27b422f | 2011-09-30 18:32:44 -0400 | [diff] [blame] | 127 | This boolean relation, if set to a value of true, forces |
Aneesh Kumar K.V | b626b39 | 2007-08-13 15:56:26 +0530 | [diff] [blame] | 128 | .B mke2fs |
| 129 | to always try to create an undo file, even if the undo file might be |
| 130 | huge and it might extend the time to create the filesystem image |
| 131 | because the inode table isn't being initialized lazily. |
| 132 | .TP |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 133 | .I fs_type |
| 134 | This relation specifies the default filesystem type if the user does not |
| 135 | specify it via the |
| 136 | .B \-t |
| 137 | option, or if |
| 138 | .B mke2fs |
| 139 | is not started using a program name of the form |
| 140 | .BI mkfs. fs-type\fR. |
| 141 | If both the user and the |
| 142 | .B mke2fs.conf |
| 143 | file does not specify a default filesystem type, mke2fs will use a |
| 144 | default filesystem type of |
| 145 | .IR ext3 |
| 146 | if a journal was requested via a command-line option, or |
| 147 | .I ext2 |
| 148 | if not. |
| 149 | .TP |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 150 | .I blocksize |
| 151 | This relation specifies the default blocksize if the user does not |
| 152 | specify a blocksize on the command line, and the filesystem-type |
| 153 | specific section of the configuration file does not specify a blocksize. |
| 154 | .TP |
Theodore Ts'o | d5f57d9 | 2008-08-29 21:39:36 -0400 | [diff] [blame] | 155 | .I hash_alg |
| 156 | This relation specifies the default hash algorithm used for the |
| 157 | new filesystems with hashed b-tree directories. Valid algorithms |
| 158 | accepted are: |
| 159 | .IR legacy , |
| 160 | .IR half_md4 , |
| 161 | and |
| 162 | .IR tea . |
| 163 | .TP |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 164 | .I inode_ratio |
| 165 | This relation specifies the default inode ratio if the user does not |
| 166 | specify one on the command line, and the filesystem-type |
| 167 | specific section of the configuration file does not specify a default |
| 168 | inode ratio. |
Andreas Dilger | 067911a | 2006-07-15 22:08:20 -0400 | [diff] [blame] | 169 | .TP |
| 170 | .I inode_size |
| 171 | This relation specifies the default inode size if the user does not |
| 172 | specify one on the command line, and the filesystem-type |
| 173 | specific section of the configuration file does not specify a default |
| 174 | inode size. |
Aneesh Kumar K.V | b626b39 | 2007-08-13 15:56:26 +0530 | [diff] [blame] | 175 | .TP |
Aditya Kali | d3859af | 2011-05-10 14:51:31 -0700 | [diff] [blame] | 176 | .I reserved_ratio |
| 177 | This relation specifies the default percentage of filesystem blocks |
| 178 | reserved for the super-user, if the user does not |
| 179 | specify one on the command line, and the filesystem-type |
| 180 | specific section of the configuration file does not specify a default |
| 181 | reserved ratio. This value can be a floating point number. |
| 182 | .TP |
Aneesh Kumar K.V | b626b39 | 2007-08-13 15:56:26 +0530 | [diff] [blame] | 183 | .I undo_dir |
| 184 | This relation specifies the directory where the undo file should be |
Theodore Ts'o | 711d384 | 2008-09-07 14:08:40 -0400 | [diff] [blame] | 185 | stored. It can be overridden via the |
Aneesh Kumar K.V | b626b39 | 2007-08-13 15:56:26 +0530 | [diff] [blame] | 186 | .B E2FSPROGS_UNDO_DIR |
Theodore Ts'o | 711d384 | 2008-09-07 14:08:40 -0400 | [diff] [blame] | 187 | environment variable. If the directory location is set to the value |
Aneesh Kumar K.V | b626b39 | 2007-08-13 15:56:26 +0530 | [diff] [blame] | 188 | .IR none , |
| 189 | .B mke2fs |
| 190 | will not create an undo file. |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 191 | .SH THE [fs_types] STANZA |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 192 | Each tag in the |
| 193 | .I [fs_types] |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 194 | stanza names a filesystem type or usage type which can be specified via the |
| 195 | .B \-t |
| 196 | or |
| 197 | .B \-T |
| 198 | options to |
| 199 | .BR mke2fs (8), |
| 200 | respectively. |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 201 | .P |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 202 | The |
| 203 | .B mke2fs |
| 204 | program constructs a list of fs_types by concatenating the filesystem |
| 205 | type (i.e., ext2, ext3, etc.) with the usage type list. For most |
| 206 | configuration options, |
| 207 | .B mke2fs |
| 208 | will look for a subsection in the |
| 209 | .I [fs_types] |
| 210 | stanza corresponding with each entry in the constructed list, with later |
| 211 | entries overriding earlier filesystem or usage types. |
| 212 | For |
| 213 | example, consider the following |
| 214 | .B mke2fs.conf |
| 215 | fragment: |
| 216 | .P |
| 217 | [defaults] |
| 218 | .br |
| 219 | base_features = sparse_super,filetype,resize_inode,dir_index |
| 220 | .br |
| 221 | blocksize = 4096 |
| 222 | .br |
| 223 | inode_size = 256 |
| 224 | .br |
| 225 | inode_ratio = 16384 |
| 226 | .br |
| 227 | |
| 228 | .br |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 229 | [fs_types] |
| 230 | .br |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 231 | ext3 = { |
| 232 | .br |
| 233 | features = has_journal |
| 234 | .br |
| 235 | } |
| 236 | .br |
| 237 | ext4 = { |
| 238 | .br |
| 239 | features = extents,flex_bg |
| 240 | .br |
| 241 | inode_size = 256 |
| 242 | .br |
| 243 | } |
| 244 | .br |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 245 | small = { |
| 246 | .br |
| 247 | blocksize = 1024 |
| 248 | .br |
| 249 | inode_ratio = 4096 |
| 250 | .br |
| 251 | } |
| 252 | .br |
| 253 | floppy = { |
| 254 | .br |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 255 | features = ^resize_inode |
| 256 | .br |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 257 | blocksize = 1024 |
| 258 | .br |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 259 | inode_size = 128 |
| 260 | .br |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 261 | } |
| 262 | .P |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 263 | If mke2fs started with a program name of |
| 264 | .BR mke2fs.ext4 , |
| 265 | then the filesystem type of ext4 will be used. If the filesystem is |
| 266 | smaller than 3 megabytes, and no usage type is specified, then |
| 267 | .B mke2fs |
| 268 | will use a default |
| 269 | usage type of |
| 270 | .IR floppy . |
| 271 | This results in an fs_types list of "ext4, floppy". Both the ext4 |
| 272 | subsection and the floppy subsection define an |
| 273 | .I inode_size |
Theodore Ts'o | 711d384 | 2008-09-07 14:08:40 -0400 | [diff] [blame] | 274 | relation, but since the later entries in the fs_types list supersede |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 275 | earlier ones, the configuration parameter for fs_types.floppy.inode_size |
| 276 | will be used, so the filesystem will have an inode size of 128. |
| 277 | .P |
| 278 | The exception to this resolution is the |
| 279 | .I features |
| 280 | tag, which is specifies a set of changes to the features used by the |
| 281 | filesystem, and which is cumulative. So in the above example, first |
| 282 | the configuration relation defaults.base_features would enable an |
| 283 | initial feature set with the sparse_super, filetype, resize_inode, and |
| 284 | dir_index features enabled. Then configuration relation |
| 285 | fs_types.ext4.features would enable the extents and flex_bg |
| 286 | features, and finally the configuration relation |
| 287 | fs_types.floppy.features would remove |
| 288 | the resize_inode feature, resulting in a filesystem feature set |
| 289 | consisting of the sparse_super, filetype, resize_inode, dir_index, |
| 290 | extents_and flex_bg features. |
| 291 | .P |
Theodore Ts'o | fac9525 | 2006-03-27 01:05:26 -0500 | [diff] [blame] | 292 | For each filesystem type, the following tags may be used in that |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 293 | fs_type's subsection: |
| 294 | .TP |
| 295 | .I base_features |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 296 | This relation specifies the features which are initially enabled for this |
| 297 | filesystem type. Only one |
| 298 | .I base_features |
| 299 | will be used, so if there are multiple entries in the fs_types list |
| 300 | whose subsections define the |
| 301 | .I base_features |
| 302 | relation, only the last will be used by |
| 303 | .BR mke2fs (8). |
| 304 | .TP |
| 305 | .I features |
| 306 | This relation specifies a comma-separated list of features edit |
| 307 | requests which modify the feature set |
| 308 | used by the newly constructed filesystem. The syntax is the same as the |
| 309 | .B -O |
| 310 | command-line option to |
| 311 | .BR mke2fs (8); |
| 312 | that is, a feature can be prefixed by a caret ('^') symbol to disable |
| 313 | a named feature. Each |
| 314 | .I feature |
| 315 | relation specified in the fs_types list will be applied in the order |
| 316 | found in the fs_types list. |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 317 | .TP |
| 318 | .I default_features |
| 319 | This relation specifies set of features which should be enabled or |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 320 | disabled after applying the features listed in the |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 321 | .I base_features |
Theodore Ts'o | 3d43836 | 2008-02-19 08:32:58 -0500 | [diff] [blame] | 322 | and |
| 323 | .I features |
| 324 | relations. It may be overridden by the |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 325 | .B -O |
| 326 | command-line option to |
| 327 | .BR mke2fs (8). |
| 328 | .TP |
Theodore Ts'o | 493024e | 2010-06-13 14:00:00 -0400 | [diff] [blame] | 329 | .I auto_64-bit_support |
| 330 | This relation is a boolean which specifies whether |
| 331 | .BR mke2fs (8) |
| 332 | should automatically add the 64bit feature if the number of blocks for |
| 333 | the file system requires this feature to be enabled. The resize_inode |
| 334 | feature is also automatically disabled since it doesn't support 64-bit |
| 335 | block numbers. |
| 336 | .TP |
Eric Sandeen | 6a426c9 | 2011-02-17 15:56:17 -0600 | [diff] [blame] | 337 | .I default_mntopts |
| 338 | This relation specifies the set of mount options which should be enabled |
| 339 | by default. These may be changed at a later time with the |
| 340 | .B -o |
| 341 | command-line option to |
| 342 | .BR tune2fs (8). |
| 343 | .TP |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 344 | .I blocksize |
| 345 | This relation specifies the default blocksize if the user does not |
| 346 | specify a blocksize on the command line. |
| 347 | .TP |
Theodore Ts'o | a4396e9 | 2008-04-18 10:19:27 -0400 | [diff] [blame] | 348 | .I lazy_itable_init |
Theodore Ts'o | 27b422f | 2011-09-30 18:32:44 -0400 | [diff] [blame] | 349 | This boolean relation specifies whether the inode table should |
Theodore Ts'o | a4396e9 | 2008-04-18 10:19:27 -0400 | [diff] [blame] | 350 | be lazily initialized. It only has meaning if the uninit_bg feature is |
| 351 | enabled. If lazy_itable_init is true and the uninit_bg feature is |
| 352 | enabled, the inode table will |
| 353 | not fully initialized by |
| 354 | .BR mke2fs (8). |
| 355 | This speeds up filesystem |
Theodore Ts'o | 711d384 | 2008-09-07 14:08:40 -0400 | [diff] [blame] | 356 | initialization noticeably, but it requires the kernel to finish |
Theodore Ts'o | a4396e9 | 2008-04-18 10:19:27 -0400 | [diff] [blame] | 357 | initializing the filesystem in the background when the filesystem is |
| 358 | first mounted. |
| 359 | .TP |
Theodore Ts'o | b818205 | 2014-01-28 12:58:56 -0500 | [diff] [blame^] | 360 | .I journal_location |
| 361 | This relation specifies the location of the journal. |
| 362 | .TP |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 363 | .I inode_ratio |
| 364 | This relation specifies the default inode ratio if the user does not |
| 365 | specify one on the command line. |
Andreas Dilger | 067911a | 2006-07-15 22:08:20 -0400 | [diff] [blame] | 366 | .TP |
| 367 | .I inode_size |
| 368 | This relation specifies the default inode size if the user does not |
| 369 | specify one on the command line. |
Theodore Ts'o | 9ba4000 | 2008-04-22 08:27:01 -0400 | [diff] [blame] | 370 | .TP |
Aditya Kali | d3859af | 2011-05-10 14:51:31 -0700 | [diff] [blame] | 371 | .I reserved_ratio |
| 372 | This relation specifies the default percentage of filesystem blocks |
| 373 | reserved for the super-user, if the user does not specify one on the command |
| 374 | line. |
| 375 | .TP |
Theodore Ts'o | d5f57d9 | 2008-08-29 21:39:36 -0400 | [diff] [blame] | 376 | .I hash_alg |
| 377 | This relation specifies the default hash algorithm used for the |
| 378 | new filesystems with hashed b-tree directories. Valid algorithms |
| 379 | accepted are: |
| 380 | .IR legacy , |
| 381 | .IR half_md4 , |
| 382 | and |
| 383 | .IR tea . |
| 384 | .TP |
Theodore Ts'o | 9ba4000 | 2008-04-22 08:27:01 -0400 | [diff] [blame] | 385 | .I flex_bg_size |
Eric Sandeen | d4a9330 | 2011-03-10 10:09:35 -0600 | [diff] [blame] | 386 | This relation specifies the number of block groups that will be packed |
Theodore Ts'o | 9ba4000 | 2008-04-22 08:27:01 -0400 | [diff] [blame] | 387 | together to create one large virtual block group on an ext4 filesystem. |
| 388 | This improves meta-data locality and performance on meta-data heavy |
Eric Sandeen | d4a9330 | 2011-03-10 10:09:35 -0600 | [diff] [blame] | 389 | workloads. The number of groups must be a power of 2 and may only be |
Theodore Ts'o | 9ba4000 | 2008-04-22 08:27:01 -0400 | [diff] [blame] | 390 | specified if the flex_bg filesystem feature is enabled. |
David Prévot | b75a4ce | 2012-03-26 10:45:51 -0700 | [diff] [blame] | 391 | .TP |
Theodore Ts'o | 2d36358 | 2008-05-14 18:09:37 -0400 | [diff] [blame] | 392 | .I options |
| 393 | This relation specifies additional extended options which should be |
| 394 | treated by |
| 395 | .BR mke2fs (8) |
| 396 | as if they were prepended to the argument of the |
| 397 | .B -E |
| 398 | option. This can be used to configure the default extended options used |
| 399 | by |
| 400 | .BR mke2fs (8) |
| 401 | on a per-filesystem type basis. |
Lukas Czerner | 7fe5ff3 | 2010-11-18 14:38:41 +0100 | [diff] [blame] | 402 | .TP |
| 403 | .I discard |
Theodore Ts'o | 27b422f | 2011-09-30 18:32:44 -0400 | [diff] [blame] | 404 | This boolean relation specifies whether the |
Lukas Czerner | 7fe5ff3 | 2010-11-18 14:38:41 +0100 | [diff] [blame] | 405 | .BR mke2fs (8) |
| 406 | should attempt to discard device prior to filesystem creation. |
Theodore Ts'o | 2d34a25 | 2011-06-14 14:30:22 -0400 | [diff] [blame] | 407 | .TP |
| 408 | .I cluster_size |
| 409 | This relation specifies the default cluster size if the bigalloc file |
| 410 | system feature is enabled. It can be overridden via the |
| 411 | .B \-C |
| 412 | command line option to |
| 413 | .BR mke2fs (8) |
Theodore Ts'o | 4c2b28a | 2011-06-14 14:17:56 -0400 | [diff] [blame] | 414 | .SH THE [devices] STANZA |
| 415 | Each tag in the |
| 416 | .I [devices] |
| 417 | stanza names device name so that per-device defaults can be specified. |
| 418 | .TP |
| 419 | .I fs_type |
| 420 | This relation specifies the default parameter for the |
| 421 | .B \-t |
| 422 | option, if this option isn't specified on the command line. |
| 423 | .TP |
| 424 | .I usage_types |
| 425 | This relation specifies the default parameter for the |
| 426 | .B \-T |
| 427 | option, if this option isn't specified on the command line. |
Theodore Ts'o | 9dc6ad1 | 2006-03-23 22:00:01 -0500 | [diff] [blame] | 428 | .SH FILES |
| 429 | .TP |
| 430 | .I /etc/mke2fs.conf |
| 431 | The configuration file for |
| 432 | .BR mke2fs (8). |
| 433 | .SH SEE ALSO |
| 434 | .BR mke2fs (8) |