From e04275c86d39e47d1d68137dd86a76f1e60a6a55 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Fri, 5 Jul 2013 13:33:16 +0200 Subject: [PATCH] LU-3559 utils: mgs has no index An MGS formatted with Lustre 2.1 does not have any index. So mount.lustre must not require an index when starting an MGS. Signed-off-by: Sebastien Buisson Change-Id: I12c1a2511509c4d34ef60a0ed937dda9e5fba4e4 Reviewed-on: http://review.whamcloud.com/6904 Tested-by: Hudson Reviewed-by: Faccini Bruno Reviewed-by: James Simmons Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Li Wei Reviewed-by: Alex Zhuravlev --- lustre/utils/mount_lustre.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/utils/mount_lustre.c b/lustre/utils/mount_lustre.c index ecc532e..cc32fba 100644 --- a/lustre/utils/mount_lustre.c +++ b/lustre/utils/mount_lustre.c @@ -388,7 +388,8 @@ static int parse_ldd(char *source, struct mount_opts *mop, char *options) return rc; } - if (ldd->ldd_flags & LDD_F_NEED_INDEX) { + if ((IS_MDT(ldd) || IS_OST(ldd)) && + (ldd->ldd_flags & LDD_F_NEED_INDEX)) { fprintf(stderr, "%s: %s has no index assigned " "(probably formatted with old mkfs)\n", progname, source); -- 1.8.3.1