Whamcloud - gitweb
LU-13533 utils: ext4lazyinit should be disabled
[fs/lustre-release.git] / lustre / utils / libmount_utils_ldiskfs.c
index 7532d11..df6d0b1 100644 (file)
@@ -882,9 +882,17 @@ int ldiskfs_make_lustre(struct mkfs_opts *mop)
        }
 
        /* Avoid zeroing out the full journal - speeds up mkfs */
-       if (is_e2fsprogs_feature_supp("-E lazy_journal_init"))
+       if (is_e2fsprogs_feature_supp("-E lazy_journal_init=0")) {
                append_unique(start, ext_opts ? "," : " -E ",
-                             "lazy_journal_init", NULL, maxbuflen);
+                             "lazy_journal_init=0", NULL, maxbuflen);
+               ext_opts = 1;
+       }
+       if (is_e2fsprogs_feature_supp("-E lazy_itable_init=0")) {
+               append_unique(start, ext_opts ? "," : "-E",
+                           "lazy_itable_init=0", NULL, maxbuflen);
+               ext_opts = 1;
+       }
+
        /* end handle -E mkfs options */
 
        /* Allow reformat of full devices (as opposed to partitions).