X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flibmount_utils_ldiskfs.c;h=56dd609d6c3a44c1f28ee6081720b27871deaa08;hp=60179b627654599d036fb3a5ea41c1e1aabebc93;hb=cd1faa0124f21e12a5ecd83c709c13918264fc86;hpb=dbce727a3633ce03d24c28defce9a0ed6d1ef106 diff --git a/lustre/utils/libmount_utils_ldiskfs.c b/lustre/utils/libmount_utils_ldiskfs.c index 60179b6..56dd609 100644 --- a/lustre/utils/libmount_utils_ldiskfs.c +++ b/lustre/utils/libmount_utils_ldiskfs.c @@ -611,6 +611,10 @@ static int enable_default_ext4_features(struct mkfs_opts *mop, char *anchor, if (IS_MDT(&mop->mo_ldd) && is_e2fsprogs_feature_supp("-O ea_inode")) append_unique(anchor, ",", "ea_inode", NULL, maxbuflen); + /* Allow more than 10M directory entries */ + if (IS_MDT(&mop->mo_ldd) && is_e2fsprogs_feature_supp("-O large_dir")) + append_unique(anchor, ",", "large_dir", NULL, maxbuflen); + /* Cluster inode/block bitmaps and inode table for more efficient IO. * Align the flex groups on a 1MB boundary for better performance. */ /* This -O feature needs to go last, since it adds the "-G" option. */