Allow to specify discard in mke2fs.conf. Also change the way how to
specify default value for lazy_itable_init. It is better to have all
this defaulting done in the same place so do it in definition (as we do
with discard).
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
int verbose;
int quiet;
int super_only;
-int discard = 1;
+int discard = 1; /* attempt to discard device before fs creation */
int force;
int noaction;
int journal_size;
int journal_flags;
-int lazy_itable_init; /* use lazy inode table init */
+int lazy_itable_init;
char *bad_blocks_filename;
__u32 fs_stride;
lazy_itable_init = get_bool_from_profile(fs_types,
"lazy_itable_init",
lazy_itable_init);
+ discard = get_bool_from_profile(fs_types, "discard" , discard);
/* Get options from profile */
for (cpp = fs_types; *cpp; cpp++) {
by
.BR mke2fs (8)
on a per-filesystem type basis.
+.TP
+.I discard
+This relation is a boolean which specifies whether the
+.BR mke2fs (8)
+should attempt to discard device prior to filesystem creation.
.SH FILES
.TP
.I /etc/mke2fs.conf