From eab2f2dbaea37fb9686ba7bd2a5ac7539752a658 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Tue, 25 Sep 2012 12:02:42 -0400 Subject: [PATCH] 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 --- lustre/utils/mkfs_lustre.c | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 1.8.3.1