* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 2011, 2016, Intel Corporation.
+ * Copyright (c) 2011, 2017, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
/* LU-8040 Set defaults here, before values configs */
mdd->mdd_cl.mc_flags = 0; /* off by default */
mdd->mdd_cl.mc_mask = CHANGELOG_DEFMASK;
+ mdd->mdd_cl.mc_deniednext = 60; /* 60 secs by default */
dev = lustre_cfg_string(lcfg, 0);
if (dev == NULL)
/* sync permission changes */
mdd->mdd_sync_permission = 1;
/* enable changelog garbage collection */
- mdd->mdd_changelog_gc = 1;
+ mdd->mdd_changelog_gc = 0;
/* with a significant amount of idle time */
mdd->mdd_changelog_max_idle_time = CHLOG_MAX_IDLE_TIME;
/* or a significant amount of late indexes */
lfsck_degister(env, m->mdd_bottom);
mdd_hsm_actions_llog_fini(env, m);
mdd_changelog_fini(env, m);
- orph_index_fini(env, m);
+ mdd_orphan_index_fini(env, m);
mdd_dot_lustre_cleanup(env, m);
if (mdd2obd_dev(m)->u.obt.obt_nodemap_config_file) {
nm_config_file_deregister_tgt(env,
break;
case LCFG_PRE_CLEANUP:
rc = next->ld_ops->ldo_process_config(env, next, cfg);
- mdd_generic_thread_stop(&m->mdd_orph_cleanup_thread);
+ mdd_generic_thread_stop(&m->mdd_orphan_cleanup_thread);
break;
case LCFG_CLEANUP:
rc = next->ld_ops->ldo_process_config(env, next, cfg);
}
static int mdd_recovery_complete(const struct lu_env *env,
- struct lu_device *d)
+ struct lu_device *d)
{
- struct mdd_device *mdd = lu2mdd_dev(d);
+ struct mdd_device *mdd = lu2mdd_dev(d);
struct lu_device *next;
- int rc;
- ENTRY;
+ int rc;
+ ENTRY;
- LASSERT(mdd != NULL);
+ LASSERT(mdd != NULL);
next = &mdd->mdd_child->dd_lu_dev;
- /* XXX: orphans handling. */
if (!mdd->mdd_bottom->dd_rdonly)
mdd_orphan_cleanup(env, mdd);
- rc = next->ld_ops->ldo_recovery_complete(env, next);
+ rc = next->ld_ops->ldo_recovery_complete(env, next);
- RETURN(rc);
+ RETURN(rc);
}
int mdd_local_file_create(const struct lu_env *env, struct mdd_device *mdd,
mdd->mdd_root_fid = fid;
}
- rc = orph_index_init(env, mdd);
+ rc = mdd_orphan_index_init(env, mdd);
if (rc < 0)
GOTO(out_dot, rc);
out_changelog:
mdd_changelog_fini(env, mdd);
out_orph:
- orph_index_fini(env, mdd);
+ mdd_orphan_index_fini(env, mdd);
out_dot:
if (mdd_seq_site(mdd)->ss_node_id == 0)
mdd_dot_lustre_cleanup(env, mdd);