{
int b, c;
int size;
- char *tmp, *tmp2;
+ char *tmp, *tmp2, **cpp;
int blocksize = 0;
int inode_ratio = 0;
int inode_size = 0;
tmp = NULL;
if (fs_param.s_rev_level != EXT2_GOOD_OLD_REV) {
- char **cpp;
-
tmp = get_string_from_profile(fs_types, "base_features",
"sparse_super,filetype,resize_inode,dir_index");
edit_feature(tmp, &fs_param.s_feature_compat);
lazy_itable_init = get_bool_from_profile(fs_types,
"lazy_itable_init", 0);
+ /* Get options from profile */
+ for (cpp = fs_types; *cpp; cpp++) {
+ tmp = NULL;
+ profile_get_string(profile, "fs_types", *cpp, "options", "", &tmp);
+ if (tmp && *tmp)
+ parse_extended_opts(&fs_param, tmp);
+ if (tmp)
+ free(tmp);
+ }
+
if (extended_opts)
parse_extended_opts(&fs_param, extended_opts);
This improves meta-data locality and performance on meta-data heavy
workloads. The number of goups must be a power of 2 and may only be
specified if the flex_bg filesystem feature is enabled.
+.I options
+This relation specifies additional extended options which should be
+treated by
+.BR mke2fs (8)
+as if they were prepended to the argument of the
+.B -E
+option. This can be used to configure the default extended options used
+by
+.BR mke2fs (8)
+on a per-filesystem type basis.
.SH FILES
.TP
.I /etc/mke2fs.conf