#define CFG_F_START 0x01 /* Set when we start updating from a log */
#define CFG_F_MARKER 0x02 /* We are within a maker */
#define CFG_F_SKIP 0x04 /* We should ignore this cfg command */
-#define CFG_F_COMPAT146 0x08 /* Using old-style log */
+#define CFG_F_COMPAT146 0x08 /* Allow old-style logs */
#define CFG_F_EXCLUDE 0x10 /* OST exclusion list */
+#define CFG_F_SERVER146 0x20 /* Using old server */
/* Passed as data param to class_config_parse_llog */
struct config_llog_instance {
memcpy(lsi->lsi_lmd->lmd_profile, oldname,
strlen(oldname) + 1);
profilenm = get_profile_name(sb);
+ cfg.cfg_flags |= CFG_F_SERVER146;
}
OBD_FREE(oldname, oldnamelen);
}
CDEBUG(D_INFO, "log %s: requeue (l=%d r=%d sp=%d st=%x)\n",
cld->cld_logname, later, atomic_read(&cld->cld_refcount),
cld->cld_stopping, rq_state);
-
+
/* Hold lock for rq_state */
spin_lock(&config_list_lock);
cld->cld_lostlock = 1;
if (cld->cld_stopping)
RETURN(0);
+ if (cld->cld_cfg.cfg_flags & CFG_F_SERVER146)
+ /* If we started from an old MDT, don't bother trying to
+ get log updates from the MGS */
+ RETURN(0);
+
OBD_FAIL_TIMEOUT(OBD_FAIL_MGC_PROCESS_LOG, 20);
lsi = s2lsi(cld->cld_cfg.cfg_sb);