blob: 0830d2ee4395e5a5410a78aa12b9bc394a166e6d [file] [log] [blame]
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -05001.\" -*- 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.
Theodore Ts'of9b16db2016-05-10 23:23:14 -04004.\"
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -05005.TH mke2fs.conf 5 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
6.SH NAME
7mke2fs.conf \- Configuration file for mke2fs
8.SH DESCRIPTION
9.I mke2fs.conf
Theodore Ts'of9b16db2016-05-10 23:23:14 -040010is the configuration file for
11.BR mke2fs (8).
12It controls the default parameters used by
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050013.BR mke2fs (8)
Theodore Ts'o626a2e72013-06-15 21:19:39 -040014when it is creating ext2, ext3, or ext4 filesystems.
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050015.PP
16The
17.I mke2fs.conf
Theodore Ts'of9b16db2016-05-10 23:23:14 -040018file uses an INI-style format. Stanzas, or top-level sections, are
19delimited by square braces: [ ]. Within each section, each line
Theodore Ts'ofac95252006-03-27 01:05:26 -050020defines a relation, which assigns tags to values, or to a subsection,
Theodore Ts'of9b16db2016-05-10 23:23:14 -040021which contains further relations or subsections.
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050022.\" Tags can be assigned multiple values
Theodore Ts'of9b16db2016-05-10 23:23:14 -040023An example of the INI-style format used by this configuration file
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050024follows below:
25.P
Theodore Ts'ofac95252006-03-27 01:05:26 -050026 [section1]
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050027.br
Theodore Ts'ofac95252006-03-27 01:05:26 -050028 tag1 = value_a
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050029.br
Theodore Ts'ofac95252006-03-27 01:05:26 -050030 tag1 = value_b
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050031.br
Theodore Ts'ofac95252006-03-27 01:05:26 -050032 tag2 = value_c
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050033.P
Theodore Ts'ofac95252006-03-27 01:05:26 -050034 [section 2]
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050035.br
Theodore Ts'ofac95252006-03-27 01:05:26 -050036 tag3 = {
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050037.br
Theodore Ts'ofac95252006-03-27 01:05:26 -050038 subtag1 = subtag_value_a
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050039.br
Theodore Ts'ofac95252006-03-27 01:05:26 -050040 subtag1 = subtag_value_b
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050041.br
Theodore Ts'ofac95252006-03-27 01:05:26 -050042 subtag2 = subtag_value_c
43.br
44 }
45.br
46 tag1 = value_d
47.br
48 tag2 = value_e
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050049.br
50 }
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050051.P
Theodore Ts'of9b16db2016-05-10 23:23:14 -040052Comments are delimited by a semicolon (';') or a hash ('#') character
53at the beginning of the comment, and are terminated by the end of
Theodore Ts'ofac95252006-03-27 01:05:26 -050054line character.
55.P
56Tags and values must be quoted using double quotes if they contain
Theodore Ts'of9b16db2016-05-10 23:23:14 -040057spaces. Within a quoted string, the standard backslash interpretations
58apply: "\en" (for the newline character),
59"\et" (for the tab character), "\eb" (for the backspace character),
Theodore Ts'ofac95252006-03-27 01:05:26 -050060and "\e\e" (for the backslash character).
61.P
Theodore Ts'o27b422f2011-09-30 18:32:44 -040062Some relations expect a boolean value. The parser is quite liberal on
63recognizing ``yes'', '`y'', ``true'', ``t'', ``1'', ``on'', etc. as a
64boolean true value, and ``no'', ``n'', ``false'', ``nil'', ``0'',
65``off'' as a boolean false value.
66.P
Theodore Ts'of9b16db2016-05-10 23:23:14 -040067The following stanzas are used in the
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050068.I mke2fs.conf
69file. They will be described in more detail in future sections of this
70document.
Theodore Ts'of83f4132014-04-26 17:34:52 -040071.TP
72.I [options]
73Contains relations which influence how mke2fs behaves.
74.TP
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050075.I [defaults]
Theodore Ts'o4c2b28a2011-06-14 14:17:56 -040076Contains relations which define the default parameters
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050077used by
78.BR mke2fs (8).
79In general, these defaults may be overridden by a definition in the
80.B fs_types
Theodore Ts'ofac95252006-03-27 01:05:26 -050081stanza, or by an command-line option provided by the user.
Theodore Ts'of9b16db2016-05-10 23:23:14 -040082.TP
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -050083.I [fs_types]
84Contains relations which define defaults that should be used for specific
Theodore Ts'of9b16db2016-05-10 23:23:14 -040085file system and usage types. The file system type and usage type can be
86specified explicitly using
87the
88.BR \-t and \-T
89options to
90.BR mke2fs (8),
91respectively.
Theodore Ts'of83f4132014-04-26 17:34:52 -040092.SH THE [options] STANZA
93The following relations are defined in the
94.I [options]
95stanza.
96.TP
97.I proceed_delay
98If this relation is set to a positive integer, then if mke2fs will
99proceed after waiting
100.I proceed_delay
101seconds, after asking the user for permission to proceed, even if the
102user has not answered the question. Defaults to 0, which means to wait
103until the user answers the question one way or another.
Theodore Ts'ofac95252006-03-27 01:05:26 -0500104.SH THE [defaults] STANZA
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400105The following relations are defined in the
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500106.I [defaults]
Theodore Ts'ofac95252006-03-27 01:05:26 -0500107stanza.
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500108.TP
109.I base_features
110This relation specifies the filesystems features which are enabled in
Theodore Ts'o9447f382006-05-22 17:59:37 -0400111newly created filesystems. It may be overridden by the
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500112.I base_features
Theodore Ts'o3d438362008-02-19 08:32:58 -0500113relation found in the filesystem or usage type subsection of
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500114the
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400115.I [fs_types]
Theodore Ts'ofac95252006-03-27 01:05:26 -0500116stanza.
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500117.TP
118.I default_features
119This relation specifies a set of features that should be added or
120removed to the features listed in the
121.I base_features
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400122relation. It may be overridden by the filesystem-specific
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500123.I default_features
Theodore Ts'o3d438362008-02-19 08:32:58 -0500124in the filesystem or usage type subsection of
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500125.IR [fs_types] ,
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400126and by the
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500127.B -O
128command-line option
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400129to
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500130.BR mke2fs (8).
131.TP
Eric Sandeen3daf5922011-02-17 15:55:15 -0600132.I enable_periodic_fsck
Theodore Ts'o27b422f2011-09-30 18:32:44 -0400133This boolean relation specifies whether periodic filesystem checks should be
134enforced at boot time. If set to true, checks will be forced every
Eric Sandeen3daf5922011-02-17 15:55:15 -0600135180 days, or after a random number of mounts. These values may
136be changed later via the
137.B -i
138and
139.B -c
140command-line options to
141.BR tune2fs (8).
142.TP
Aneesh Kumar K.Vb626b392007-08-13 15:56:26 +0530143.I force_undo
Theodore Ts'o27b422f2011-09-30 18:32:44 -0400144This boolean relation, if set to a value of true, forces
Aneesh Kumar K.Vb626b392007-08-13 15:56:26 +0530145.B mke2fs
146to always try to create an undo file, even if the undo file might be
147huge and it might extend the time to create the filesystem image
148because the inode table isn't being initialized lazily.
149.TP
Theodore Ts'o3d438362008-02-19 08:32:58 -0500150.I fs_type
151This relation specifies the default filesystem type if the user does not
152specify it via the
153.B \-t
154option, or if
155.B mke2fs
156is not started using a program name of the form
157.BI mkfs. fs-type\fR.
158If both the user and the
159.B mke2fs.conf
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400160file do not specify a default filesystem type, mke2fs will use a
Theodore Ts'o3d438362008-02-19 08:32:58 -0500161default filesystem type of
162.IR ext3
163if a journal was requested via a command-line option, or
164.I ext2
165if not.
166.TP
Aneesh Kumar K.Vb626b392007-08-13 15:56:26 +0530167.I undo_dir
168This relation specifies the directory where the undo file should be
Theodore Ts'o711d3842008-09-07 14:08:40 -0400169stored. It can be overridden via the
Aneesh Kumar K.Vb626b392007-08-13 15:56:26 +0530170.B E2FSPROGS_UNDO_DIR
Theodore Ts'o711d3842008-09-07 14:08:40 -0400171environment variable. If the directory location is set to the value
Aneesh Kumar K.Vb626b392007-08-13 15:56:26 +0530172.IR none ,
173.B mke2fs
174will not create an undo file.
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400175.PP
176In addition, any tags that can be specified in a per-file system tags
177subsection as defined below (e.g.,
178.IR blocksize ,
179.IR hash_alg ,
180.IR inode_ratio ,
181.IR inode_size ,
182.IR reserved_ratio ,
183etc.) can also be specified in the
184.I defaults
185stanza to specify the default value to be used if the user does not
186specify one on the command line, and the filesystem-type
187specific section of the configuration file does not specify a default value.
Theodore Ts'ofac95252006-03-27 01:05:26 -0500188.SH THE [fs_types] STANZA
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500189Each tag in the
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400190.I [fs_types]
Theodore Ts'o3d438362008-02-19 08:32:58 -0500191stanza names a filesystem type or usage type which can be specified via the
192.B \-t
193or
194.B \-T
195options to
196.BR mke2fs (8),
197respectively.
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500198.P
Theodore Ts'o3d438362008-02-19 08:32:58 -0500199The
200.B mke2fs
201program constructs a list of fs_types by concatenating the filesystem
202type (i.e., ext2, ext3, etc.) with the usage type list. For most
203configuration options,
204.B mke2fs
205will look for a subsection in the
206.I [fs_types]
207stanza corresponding with each entry in the constructed list, with later
208entries overriding earlier filesystem or usage types.
209For
210example, consider the following
211.B mke2fs.conf
212fragment:
213.P
214[defaults]
215.br
216 base_features = sparse_super,filetype,resize_inode,dir_index
217.br
218 blocksize = 4096
219.br
220 inode_size = 256
221.br
222 inode_ratio = 16384
223.br
224
225.br
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500226[fs_types]
227.br
Theodore Ts'o3d438362008-02-19 08:32:58 -0500228 ext3 = {
229.br
230 features = has_journal
231.br
232 }
233.br
234 ext4 = {
235.br
236 features = extents,flex_bg
237.br
238 inode_size = 256
239.br
240 }
241.br
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500242 small = {
243.br
244 blocksize = 1024
245.br
246 inode_ratio = 4096
247.br
248 }
249.br
250 floppy = {
251.br
Theodore Ts'o3d438362008-02-19 08:32:58 -0500252 features = ^resize_inode
253.br
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500254 blocksize = 1024
255.br
Theodore Ts'o3d438362008-02-19 08:32:58 -0500256 inode_size = 128
257.br
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500258 }
259.P
Theodore Ts'o3d438362008-02-19 08:32:58 -0500260If mke2fs started with a program name of
261.BR mke2fs.ext4 ,
262then the filesystem type of ext4 will be used. If the filesystem is
263smaller than 3 megabytes, and no usage type is specified, then
264.B mke2fs
265will use a default
266usage type of
267.IR floppy .
268This results in an fs_types list of "ext4, floppy". Both the ext4
269subsection and the floppy subsection define an
270.I inode_size
Theodore Ts'o711d3842008-09-07 14:08:40 -0400271relation, but since the later entries in the fs_types list supersede
Theodore Ts'o3d438362008-02-19 08:32:58 -0500272earlier ones, the configuration parameter for fs_types.floppy.inode_size
273will be used, so the filesystem will have an inode size of 128.
274.P
275The exception to this resolution is the
276.I features
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400277tag, which specifies a set of changes to the features used by the
Theodore Ts'o3d438362008-02-19 08:32:58 -0500278filesystem, and which is cumulative. So in the above example, first
279the configuration relation defaults.base_features would enable an
280initial feature set with the sparse_super, filetype, resize_inode, and
281dir_index features enabled. Then configuration relation
282fs_types.ext4.features would enable the extents and flex_bg
283features, and finally the configuration relation
284fs_types.floppy.features would remove
285the resize_inode feature, resulting in a filesystem feature set
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400286consisting of the sparse_super, filetype, dir_index,
Theodore Ts'o3d438362008-02-19 08:32:58 -0500287extents_and flex_bg features.
288.P
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400289For each filesystem type, the following tags may be used in that
290fs_type's subsection. These tags may also be used in the
291.I default
292section:
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500293.TP
294.I base_features
Theodore Ts'o3d438362008-02-19 08:32:58 -0500295This relation specifies the features which are initially enabled for this
296filesystem type. Only one
297.I base_features
298will be used, so if there are multiple entries in the fs_types list
299whose subsections define the
300.I base_features
301relation, only the last will be used by
302.BR mke2fs (8).
303.TP
Darrick J. Wongcd321292014-07-25 08:58:29 -0400304.I errors
305Change the behavior of the kernel code when errors are detected.
306In all cases, a filesystem error will cause
307.BR e2fsck (8)
308to check the filesystem on the next boot.
309.I errors
310can be one of the following:
311.RS 1.2i
312.TP 1.2i
313.B continue
314Continue normal execution.
315.TP
316.B remount-ro
317Remount filesystem read-only.
318.TP
319.B panic
320Cause a kernel panic.
321.RE
322.TP
Theodore Ts'o3d438362008-02-19 08:32:58 -0500323.I features
324This relation specifies a comma-separated list of features edit
325requests which modify the feature set
326used by the newly constructed filesystem. The syntax is the same as the
327.B -O
328command-line option to
329.BR mke2fs (8);
330that is, a feature can be prefixed by a caret ('^') symbol to disable
331a named feature. Each
332.I feature
333relation specified in the fs_types list will be applied in the order
334found in the fs_types list.
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500335.TP
336.I default_features
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400337This relation specifies set of features which should be enabled or
Theodore Ts'o3d438362008-02-19 08:32:58 -0500338disabled after applying the features listed in the
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500339.I base_features
Theodore Ts'o3d438362008-02-19 08:32:58 -0500340and
341.I features
342relations. It may be overridden by the
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500343.B -O
344command-line option to
345.BR mke2fs (8).
346.TP
Theodore Ts'o493024e2010-06-13 14:00:00 -0400347.I auto_64-bit_support
348This relation is a boolean which specifies whether
349.BR mke2fs (8)
350should automatically add the 64bit feature if the number of blocks for
351the file system requires this feature to be enabled. The resize_inode
352feature is also automatically disabled since it doesn't support 64-bit
353block numbers.
354.TP
Eric Sandeen6a426c92011-02-17 15:56:17 -0600355.I default_mntopts
356This relation specifies the set of mount options which should be enabled
357by default. These may be changed at a later time with the
358.B -o
359command-line option to
360.BR tune2fs (8).
361.TP
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500362.I blocksize
363This relation specifies the default blocksize if the user does not
364specify a blocksize on the command line.
365.TP
Theodore Ts'oa4396e92008-04-18 10:19:27 -0400366.I lazy_itable_init
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400367This boolean relation specifies whether the inode table should
Theodore Ts'oa4396e92008-04-18 10:19:27 -0400368be lazily initialized. It only has meaning if the uninit_bg feature is
369enabled. If lazy_itable_init is true and the uninit_bg feature is
370enabled, the inode table will
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400371not be fully initialized by
Theodore Ts'oa4396e92008-04-18 10:19:27 -0400372.BR mke2fs (8).
373This speeds up filesystem
Theodore Ts'o711d3842008-09-07 14:08:40 -0400374initialization noticeably, but it requires the kernel to finish
Theodore Ts'oa4396e92008-04-18 10:19:27 -0400375initializing the filesystem in the background when the filesystem is
376first mounted.
377.TP
Theodore Ts'ob8182052014-01-28 12:58:56 -0500378.I journal_location
379This relation specifies the location of the journal.
380.TP
Theodore Ts'o65c6c3e2014-01-11 22:11:42 -0500381.I num_backup_sb
382This relation indicates whether file systems with the
383.B sparse_super2
384feature enabled should be created with 0, 1, or 2 backup superblocks.
385.TP
Theodore Ts'o3c6e91c2014-01-28 14:44:23 -0500386.I packed_meta_blocks
387This boolean relation specifes whether the allocation bitmaps, inode
388table, and journal should be located at the beginning of the file system.
389.TP
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500390.I inode_ratio
391This relation specifies the default inode ratio if the user does not
392specify one on the command line.
Andreas Dilger067911a2006-07-15 22:08:20 -0400393.TP
394.I inode_size
395This relation specifies the default inode size if the user does not
396specify one on the command line.
Theodore Ts'o9ba40002008-04-22 08:27:01 -0400397.TP
Aditya Kalid3859af2011-05-10 14:51:31 -0700398.I reserved_ratio
399This relation specifies the default percentage of filesystem blocks
400reserved for the super-user, if the user does not specify one on the command
401line.
402.TP
Theodore Ts'od5f57d92008-08-29 21:39:36 -0400403.I hash_alg
404This relation specifies the default hash algorithm used for the
405new filesystems with hashed b-tree directories. Valid algorithms
406accepted are:
407.IR legacy ,
408.IR half_md4 ,
409and
410.IR tea .
411.TP
Theodore Ts'o9ba40002008-04-22 08:27:01 -0400412.I flex_bg_size
Eric Sandeend4a93302011-03-10 10:09:35 -0600413This relation specifies the number of block groups that will be packed
Theodore Ts'o9ba40002008-04-22 08:27:01 -0400414together to create one large virtual block group on an ext4 filesystem.
415This improves meta-data locality and performance on meta-data heavy
Eric Sandeend4a93302011-03-10 10:09:35 -0600416workloads. The number of groups must be a power of 2 and may only be
Theodore Ts'o9ba40002008-04-22 08:27:01 -0400417specified if the flex_bg filesystem feature is enabled.
David Prévotb75a4ce2012-03-26 10:45:51 -0700418.TP
Theodore Ts'o2d363582008-05-14 18:09:37 -0400419.I options
420This relation specifies additional extended options which should be
421treated by
422.BR mke2fs (8)
423as if they were prepended to the argument of the
424.B -E
425option. This can be used to configure the default extended options used
426by
427.BR mke2fs (8)
428on a per-filesystem type basis.
Lukas Czerner7fe5ff32010-11-18 14:38:41 +0100429.TP
430.I discard
Theodore Ts'o27b422f2011-09-30 18:32:44 -0400431This boolean relation specifies whether the
Lukas Czerner7fe5ff32010-11-18 14:38:41 +0100432.BR mke2fs (8)
433should attempt to discard device prior to filesystem creation.
Theodore Ts'o2d34a252011-06-14 14:30:22 -0400434.TP
435.I cluster_size
436This relation specifies the default cluster size if the bigalloc file
437system feature is enabled. It can be overridden via the
438.B \-C
439command line option to
440.BR mke2fs (8)
Theodore Ts'o23a1b982014-01-20 23:06:07 -0500441.TP
442.I make_hugefiles
443This boolean relation enables the creation of pre-allocated files as
444part of formatting the file system.
445.TP
446.I hugefiles_uid
447This relation controls the user ownership for all of the files and
448directories created by the
449.I make_hugefiles
450feature.
451.TP
452.I hugefiles_gid
453This relation controls the group ownership for all of the files and
454directories created by the
455.I make_hugefiles
456feature.
457.TP
458.I hugefiles_umask
459This relation specifies the umask used when creating the files and
460directories by the
461.I make_hugefiles
462feature.
463.TP
464.I num_hugefiles
465This relation specifies the number of huge files to be created. If this
466relation is not specified, or is set to zero, and the
467.I hugefiles_size
468relation is non-zero, then
469.I make_hugefiles
470will create as many huge files as can fit to fill the entire file system.
471.TP
472.I hugefiles_slack
473This relation specifies how much space should be reserved for other
474files.
475.TP
476.I hugefiles_size
477This relation specifies the size of the huge files. If this relation is
Theodore Ts'o7efd2502014-02-04 12:30:00 -0500478not specified, the default is to fill the entire file system.
479.TP
480.I hugefiles_align
481This relation specifies the alignment for the start block of the huge
482files. It also forces the size of huge files to be a multiple of the
483requested alignment. If this relation is not specified, no alignment
484requirement will be imposed on the huge files.
Theodore Ts'o23a1b982014-01-20 23:06:07 -0500485.TP
Theodore Ts'oc42de752014-07-08 20:02:48 -0400486.I hugefiles_align_disk
487Thie relations specifies whether the alignment should be relative to the
488beginning of the hard drive (assuming that the starting offset of the
489partition is available to mke2fs). The default value is false, which
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400490will cause hugefile alignment to be relative to the beginning of the
Theodore Ts'oc42de752014-07-08 20:02:48 -0400491file system.
492.TP
Theodore Ts'o23a1b982014-01-20 23:06:07 -0500493.I hugefiles_name
494This relation specifies the base file name for the huge files.
495.TP
496.I hugefiles_digits
497This relation specifies the (zero-padded) width of the field for the
498huge file number.
499.TP
500.I zero_hugefiles
501This boolean relation specifies whether or not zero blocks will be
502written to the hugefiles while
503.BR mke2fs(8)
504is creating them. By default, zero blocks will be written to the huge
505files to avoid stale data from being made available to potentially
506untrusted user programs, unless the device supports a discard/trim
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400507operation which will take care of zeroing the device blocks. By setting
Theodore Ts'o23a1b982014-01-20 23:06:07 -0500508.I zero_hugefiles
509to false, this step will always be skipped, which can be useful if it is
510known that the disk has been previously erased, or if the user programs
511that will have access to the huge files are trusted to not reveal stale
512data.
Theodore Ts'o4c2b28a2011-06-14 14:17:56 -0400513.SH THE [devices] STANZA
514Each tag in the
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400515.I [devices]
Theodore Ts'o4c2b28a2011-06-14 14:17:56 -0400516stanza names device name so that per-device defaults can be specified.
517.TP
518.I fs_type
519This relation specifies the default parameter for the
520.B \-t
521option, if this option isn't specified on the command line.
522.TP
523.I usage_types
524This relation specifies the default parameter for the
525.B \-T
526option, if this option isn't specified on the command line.
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500527.SH FILES
528.TP
529.I /etc/mke2fs.conf
Theodore Ts'of9b16db2016-05-10 23:23:14 -0400530The configuration file for
Theodore Ts'o9dc6ad12006-03-23 22:00:01 -0500531.BR mke2fs (8).
532.SH SEE ALSO
533.BR mke2fs (8)