From df1b7b4bb218224e526a4245ca64d19120c1c8fe Mon Sep 17 00:00:00 2001 From: Girish Shilamkar Date: Fri, 4 Jun 2010 23:20:11 +0200 Subject: [PATCH] b=22911 don't enable extent for MDT by default i=johann i=adilger --- lustre/ChangeLog | 14 +++++++++----- lustre/utils/mkfs_lustre.c | 8 +++++++- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/lustre/ChangeLog b/lustre/ChangeLog index 60c1e53..d9d18fa 100644 --- a/lustre/ChangeLog +++ b/lustre/ChangeLog @@ -12,11 +12,6 @@ tbd Oracle, Inc. * The async journal commit feature (bug 19128) and the cancel lock before replay feature (bug 16774) are disabled by default. -Severity : normal -Bugzilla : 22658 -Description: Do not fail OST activation when a llog is not found, just - issue an error message. - Severity : enhancement Bugzilla : 15253 Description: add conf-param -d option to remove permanent settings. @@ -171,6 +166,15 @@ Bugzilla : 21556 Description: extent lock cancellation on client can keep the cpu busy for too long. +Severity : normal +Bugzilla : 22658 +Description: Do not fail OST activation when a llog is not found, just + issue an error message. + +Severity : normal +Bugzilla : 22911 +Description: Don't enable extents by default for MDT. + ------------------------------------------------------------------------------- 2010-04-30 Oracle, Inc. diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index 2cd9fe9..dad9961 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -517,7 +517,13 @@ static void enable_default_backfs_features(struct mkfs_opts *mop) int maj_high, maj_low, min; int ret; - strscat(mop->mo_mkfsopts, " -O dir_index,extents", sizeof(mop->mo_mkfsopts)); + if (IS_OST(&mop->mo_ldd)) { + strscat(mop->mo_mkfsopts, " -O dir_index,extents", + sizeof(mop->mo_mkfsopts)); + } else { + strscat(mop->mo_mkfsopts, " -O dir_index", + sizeof(mop->mo_mkfsopts)); + } /* Upstream e2fsprogs called our uninit_groups feature uninit_bg, * check for both of them when testing e2fsprogs features. */ -- 1.8.3.1