diff options
author | Lukas Czerner <lczerner@redhat.com> | 2010-11-18 14:38:41 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-11-22 16:15:16 -0500 |
commit | 7fe5ff3c1e06c4705a7a709a7ed34f02c5a02fd8 (patch) | |
tree | 09172b0e12c0eb0fa2cebd9fb6d0ab6cd94f4504 /misc/mke2fs.c | |
parent | 0bc85dfb384b470e6170268c8436fcbe58317cbe (diff) | |
download | e2fsprogs-7fe5ff3c1e06c4705a7a709a7ed34f02c5a02fd8.tar.gz |
mke2fs: Add discard option into mke2fs.conf
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>
Diffstat (limited to 'misc/mke2fs.c')
-rw-r--r-- | misc/mke2fs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/mke2fs.c b/misc/mke2fs.c index ec4a810f..9a7e2876 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -80,12 +80,12 @@ int cflag; 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; @@ -1749,6 +1749,7 @@ got_size: 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++) { |