From f0bc77106dad8db4b672928f3c81f5892a6550e1 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Sat, 25 May 2019 09:48:06 -0400 Subject: [PATCH] LU-1732 utils: allow ldiskfs wide striping with ea_inode Format the MDT filesystem with the "ea_inode" option by default so that files can have more than 160 stripes, and large xattrs over one filesystem block in size (normally 4096 bytes). Signed-off-by: Andreas Dilger Signed-off-by: Li Dongyang Signed-off-by: Patrick Farrell Change-Id: I71589c13e59a9d13db3bf075282cf6334b86be30 Reviewed-on: https://review.whamcloud.com/4315 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- lustre/utils/libmount_utils_ldiskfs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/utils/libmount_utils_ldiskfs.c b/lustre/utils/libmount_utils_ldiskfs.c index bf97b95..60179b6 100644 --- a/lustre/utils/libmount_utils_ldiskfs.c +++ b/lustre/utils/libmount_utils_ldiskfs.c @@ -607,6 +607,10 @@ static int enable_default_ext4_features(struct mkfs_opts *mop, char *anchor, if (enable_64bit || strstr(mop->mo_mkfsopts, "meta_bg")) append_unique(anchor, ",", "^resize_inode", NULL, maxbuflen); + /* Allow xattrs larger than one block, stored in a separate inode */ + if (IS_MDT(&mop->mo_ldd) && is_e2fsprogs_feature_supp("-O ea_inode")) + append_unique(anchor, ",", "ea_inode", 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. */ -- 1.8.3.1