Whamcloud - gitweb
LU-3559 utils: mgs has no index 04/6904/3
authorSebastien Buisson <sebastien.buisson@bull.net>
Fri, 5 Jul 2013 11:33:16 +0000 (13:33 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 19 Jul 2013 04:15:19 +0000 (04:15 +0000)
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 <sebastien.buisson@bull.net>
Change-Id: I12c1a2511509c4d34ef60a0ed937dda9e5fba4e4
Reviewed-on: http://review.whamcloud.com/6904
Tested-by: Hudson
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Li Wei <wei.g.li@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
lustre/utils/mount_lustre.c

index ecc532e..cc32fba 100644 (file)
@@ -388,7 +388,8 @@ static int parse_ldd(char *source, struct mount_opts *mop, char *options)
                return rc;
        }
 
                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);
                fprintf(stderr, "%s: %s has no index assigned "
                        "(probably formatted with old mkfs)\n",
                        progname, source);