From: James Simmons Date: Tue, 25 Sep 2012 16:02:42 +0000 (-0400) Subject: LU-2022 utils: Mount MGS lacking index X-Git-Tag: 2.3.52~30 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=eab2f2dbaea37fb9686ba7bd2a5ac7539752a658 LU-2022 utils: Mount MGS lacking index The MGT is the only device that can't be formatted with a index but mount.lustre expects all devices to be formated with a index. This patch allows the MGT to be the exception. Signed-off-by: James Simmons Change-Id: Icea4e18173e9c670302a795bd53b2769b55fc38f Reviewed-on: http://review.whamcloud.com/4084 Tested-by: Hudson Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Keith Mannthey Reviewed-by: Alex Zhuravlev --- diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index bbf0854..22bf661 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -620,6 +620,10 @@ int main(int argc, char *const argv[]) goto out; } + /* Stand alone MGS doesn't need a index */ + if (!IS_MDT(ldd) && IS_MGS(ldd)) + mop.mo_ldd.ldd_flags &= ~LDD_F_NEED_INDEX; + if ((mop.mo_ldd.ldd_flags & (LDD_F_NEED_INDEX | LDD_F_UPGRADE14)) == (LDD_F_NEED_INDEX | LDD_F_UPGRADE14)) { fatal();