Whamcloud - gitweb
LU-14388 utils: always enable ldiskfs project quota
[fs/lustre-release.git] / lustre / utils / libmount_utils_ldiskfs.c
index df6d0b1..3fe870c 100644 (file)
@@ -510,6 +510,9 @@ static int enable_default_ext4_features(struct mkfs_opts *mop, char *anchor,
        /* Enable quota by default */
        if (is_e2fsprogs_feature_supp("-O quota")) {
                append_unique(anchor, ",", "quota", NULL, maxbuflen);
+               /* Enable project quota by default */
+               if (is_e2fsprogs_feature_supp("-O project"))
+                       append_unique(anchor, ",", "project", NULL, maxbuflen);
        } else {
                fatal();
                fprintf(stderr, "\"-O quota\" must be supported by "