Whamcloud - gitweb
LU-14388 utils: always enable ldiskfs project quota 70/41370/3
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 30 Jan 2021 19:42:36 +0000 (12:42 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 21:07:27 +0000 (21:07 +0000)
Always enable project quota for newly-formatted ldiskfs filesystems.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I1b0f745bc04b5c42592bcc4fd9823d068fef2a79
Reviewed-on: https://review.whamcloud.com/41370
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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 "