Whamcloud - gitweb
LU-3285 lov: add MDT target to the LOV device
[fs/lustre-release.git] / lustre / mgs / mgs_llog.c
index a583d6d..135e78b 100644 (file)
@@ -1910,7 +1910,8 @@ static int mgs_steal_client_llog_handler(const struct lu_env *env,
         if (lcfg->lcfg_command == LCFG_SPTLRPC_CONF)
                 RETURN(rc);
 
-        if (lcfg->lcfg_command == LCFG_ADD_MDC) {
+       if (lcfg->lcfg_command == LCFG_ADD_MDC &&
+           strstr(lustre_cfg_string(lcfg, 0), "-clilmv") != NULL) {
                 int index;
 
                 if (sscanf(lustre_cfg_buf(lcfg, 2), "%d", &index) != 1)
@@ -2546,17 +2547,14 @@ static int mgs_write_log_mdt(const struct lu_env *env,
        if (rc)
                GOTO(out_free, rc);
 
-       rc = record_marker(env, llh, fsdb, CM_START, cliname,
-                          "mount opts");
+       rc = record_marker(env, llh, fsdb, CM_START, cliname, "mount opts");
        if (rc)
                GOTO(out_end, rc);
        rc = record_mount_opt(env, llh, cliname, fsdb->fsdb_clilov,
                              fsdb->fsdb_clilmv);
        if (rc)
                GOTO(out_end, rc);
-       rc = record_marker(env, llh, fsdb, CM_END, cliname,
-                          "mount opts");
-
+       rc = record_marker(env, llh, fsdb, CM_END, cliname, "mount opts");
        if (rc)
                GOTO(out_end, rc);