From ef266ede9a416d2c1d5189641fcc03ddb095f480 Mon Sep 17 00:00:00 2001 From: scjody Date: Thu, 5 Apr 2007 23:52:07 +0000 Subject: [PATCH] Branch HEAD Format ldiskfs2 backing filesystems with uninit_groups. b=11981 i=adilger i=alex --- lustre/utils/mkfs_lustre.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index a2c4021..36cb2dd 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -523,9 +523,15 @@ int make_lustre_backfs(struct mkfs_opts *mop) strcat(mop->mo_mkfsopts, " -q"); } - /* Enable hashed b-tree directory lookup in large dirs bz6224 */ if (strstr(mop->mo_mkfsopts, "-O") == NULL) { + /* Enable hashed b-tree directory lookup in large dirs + bz6224 */ strcat(mop->mo_mkfsopts, " -O dir_index"); + + /* ldiskfs2: do not initialize all groups. */ + if (mop->mo_ldd.ldd_mount_type == LDD_MT_LDISKFS2) { + strcat(mop->mo_mkfsopts, ",uninit_groups"); + } } /* Allow reformat of full devices (as opposed to -- 1.8.3.1