Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-14865 utils: llog_reader.c printf type mismatch
[fs/lustre-release.git]
/
lustre
/
utils
/
libmount_utils_ldiskfs.c
diff --git
a/lustre/utils/libmount_utils_ldiskfs.c
b/lustre/utils/libmount_utils_ldiskfs.c
index
7532d11
..
5907213
100644
(file)
--- a/
lustre/utils/libmount_utils_ldiskfs.c
+++ b/
lustre/utils/libmount_utils_ldiskfs.c
@@
-27,7
+27,6
@@
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
*
* lustre/utils/mount_utils_ldiskfs.c
*
*
* lustre/utils/mount_utils_ldiskfs.c
*
@@
-510,6
+509,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 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 "
} else {
fatal();
fprintf(stderr, "\"-O quota\" must be supported by "
@@
-882,9
+884,17
@@
int ldiskfs_make_lustre(struct mkfs_opts *mop)
}
/* Avoid zeroing out the full journal - speeds up mkfs */
}
/* 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 ",
append_unique(start, ext_opts ? "," : " -E ",
- "lazy_journal_init", NULL, maxbuflen);
+ "lazy_journal_init", "0", maxbuflen);
+ ext_opts = 1;
+ }
+ if (is_e2fsprogs_feature_supp("-E lazy_itable_init=0")) {
+ append_unique(start, ext_opts ? "," : "-E",
+ "lazy_itable_init", "0", maxbuflen);
+ ext_opts = 1;
+ }
+
/* end handle -E mkfs options */
/* Allow reformat of full devices (as opposed to partitions).
/* end handle -E mkfs options */
/* Allow reformat of full devices (as opposed to partitions).