This patch fixes issues reported by checkpatch
for file lustre/mgs/mgc_handler.c
Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: I53781b40464676fb36b704bdfcc960d30e81acd1
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54093
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
struct fs_db *fsdb;
/* l_ast_data is used as a marker to avoid cancel ldlm lock
struct fs_db *fsdb;
/* l_ast_data is used as a marker to avoid cancel ldlm lock
- * twice. See LU-2317. */
+ * twice. See LU-2317.
+ */
lock_res_and_lock(lock);
fsdb = (struct fs_db *)lock->l_ast_data;
lock->l_ast_data = NULL;
lock_res_and_lock(lock);
fsdb = (struct fs_db *)lock->l_ast_data;
lock->l_ast_data = NULL;
if (fsdb != NULL) {
struct lustre_handle lockh;
if (fsdb != NULL) {
struct lustre_handle lockh;
- switch(type) {
- case AST_CONFIG:
- /* clear the bit before lock put */
- clear_bit(FSDB_REVOKING_LOCK,
- &fsdb->fsdb_flags);
- break;
- case AST_PARAMS:
- clear_bit(FSDB_REVOKING_PARAMS,
- &fsdb->fsdb_flags);
- break;
- case AST_IR:
- mgs_ir_notify_complete(fsdb);
- break;
- case AST_BARRIER:
- break;
- default:
- LBUG();
+ switch (type) {
+ case AST_CONFIG:
+ /* clear the bit before lock put */
+ clear_bit(FSDB_REVOKING_LOCK,
+ &fsdb->fsdb_flags);
+ break;
+ case AST_PARAMS:
+ clear_bit(FSDB_REVOKING_PARAMS,
+ &fsdb->fsdb_flags);
+ break;
+ case AST_IR:
+ mgs_ir_notify_complete(fsdb);
+ break;
+ case AST_BARRIER:
+ break;
+ default:
+ LBUG();
}
ldlm_lock2handle(lock, &lockh);
}
ldlm_lock2handle(lock, &lockh);
struct ldlm_res_id res_id;
__u64 flags = LDLM_FL_ATOMIC_CB;
int rc;
struct ldlm_res_id res_id;
__u64 flags = LDLM_FL_ATOMIC_CB;
int rc;
ENTRY;
LASSERT(fsdb->fsdb_name[0] != '\0');
ENTRY;
LASSERT(fsdb->fsdb_name[0] != '\0');
-/* rc=0 means ok
- 1 means update
- <0 means error */
+/* Returns: 0 on Success
+ * Returns: 1 means update
+ * Returns: <0 means error
+ */
static int mgs_check_target(const struct lu_env *env,
struct mgs_device *mgs,
struct mgs_target_info *mti)
{
static int mgs_check_target(const struct lu_env *env,
struct mgs_device *mgs,
struct mgs_target_info *mti)
{
rc = mgs_check_index(env, mgs, mti);
rc = mgs_check_index(env, mgs, mti);
- if (rc == 0) {
- LCONSOLE_ERROR_MSG(0x13b, "%s claims to have registered, but "
- "this MGS does not know about it, preventing "
- "registration.\n", mti->mti_svname);
- rc = -ENOENT;
- } else if (rc == -1) {
- LCONSOLE_ERROR_MSG(0x13c, "Client log %s-client has "
- "disappeared! Regenerating all logs.\n",
- mti->mti_fsname);
- mti->mti_flags |= LDD_F_WRITECONF;
- rc = 1;
- } else {
- /* Index is correctly marked as used */
+ if (rc == 0) {
+ LCONSOLE_ERROR_MSG(0x13b,
+ "%s claims to have registered, but this MGS does not know about it, preventing registration.\n",
+ mti->mti_svname);
+ rc = -ENOENT;
+ } else if (rc == -1) {
+ LCONSOLE_ERROR_MSG(0x13c,
+ "Client log %s-client has disappeared! Regenerating all logs.\n",
+ mti->mti_fsname);
+ mti->mti_flags |= LDD_F_WRITECONF;
+ rc = 1;
+ } else {
+ /* Index is correctly marked as used */
}
/* Ensure this is not a failover node that is connecting first*/
}
/* Ensure this is not a failover node that is connecting first*/
int rc;
if (target_supports_large_nid(mti)) {
int rc;
if (target_supports_large_nid(mti)) {
- rc = libcfs_strnid(&nid2, mti->mti_nidlist[i]);
+ rc = libcfs_strnid(&nid2,
+ mti->mti_nidlist[i]);
if (rc < 0) {
LCONSOLE_WARN("NID %s is unsupported type or improper format\n",
libcfs_nidstr(&nid));
return rc;
}
} else {
if (rc < 0) {
LCONSOLE_WARN("NID %s is unsupported type or improper format\n",
libcfs_nidstr(&nid));
return rc;
}
} else {
- lnet_nid4_to_nid(mti->mti_nids[i], &nid2);
+ lnet_nid4_to_nid(mti->mti_nids[i],
+ &nid2);
}
if (nid_same(&nid, &nid2)) {
}
if (nid_same(&nid, &nid2)) {
if (b_fsdb->fsdb_barrier_status == BS_FREEZING_P1 ||
b_fsdb->fsdb_barrier_status == BS_FREEZING_P2 ||
b_fsdb->fsdb_barrier_status == BS_FROZEN) {
if (b_fsdb->fsdb_barrier_status == BS_FREEZING_P1 ||
b_fsdb->fsdb_barrier_status == BS_FREEZING_P2 ||
b_fsdb->fsdb_barrier_status == BS_FROZEN) {
- LCONSOLE_WARN("%s: the system is in barrier, refuse "
- "the connection from MDT %s temporary\n",
+ LCONSOLE_WARN("%s: the system is in barrier, refuse the connection from MDT %s temporary\n",
obd->obd_name, mti->mti_svname);
GOTO(out_norevoke, rc = -EBUSY);
obd->obd_name, mti->mti_svname);
GOTO(out_norevoke, rc = -EBUSY);
if (!(exp_connect_flags(tsi->tsi_exp) & OBD_CONNECT_BARRIER) &&
!b_fsdb->fsdb_barrier_disabled) {
if (!(exp_connect_flags(tsi->tsi_exp) & OBD_CONNECT_BARRIER) &&
!b_fsdb->fsdb_barrier_disabled) {
- LCONSOLE_WARN("%s: the MDT %s does not support write "
- "barrier, so disable barrier on the "
- "whole system.\n",
+ LCONSOLE_WARN("%s: the MDT %s does not support write barrier, so disable barrier on the whole system.\n",
obd->obd_name, mti->mti_svname);
b_fsdb->fsdb_barrier_disabled = 1;
obd->obd_name, mti->mti_svname);
b_fsdb->fsdb_barrier_disabled = 1;
b_fsdb = NULL;
rc = mgs_erase_logs(tsi->tsi_env, mgs,
mti->mti_fsname);
b_fsdb = NULL;
rc = mgs_erase_logs(tsi->tsi_env, mgs,
mti->mti_fsname);
- LCONSOLE_WARN("%s: Logs for fs %s were removed by user "
- "request. All servers must be restarted "
- "in order to regenerate the logs: rc = %d"
- "\n", obd->obd_name, mti->mti_fsname, rc);
+ LCONSOLE_WARN("%s: Logs for fs %s were removed by user request. All servers must be restarted in order to regenerate the logs: rc = %d\n",
+ obd->obd_name, mti->mti_fsname, rc);
if (rc && rc != -ENOENT)
GOTO(out_norevoke, rc);
if (rc && rc != -ENOENT)
GOTO(out_norevoke, rc);
if (!(exp_connect_flags(tsi->tsi_exp) &
OBD_CONNECT_BARRIER)) {
if (!(exp_connect_flags(tsi->tsi_exp) &
OBD_CONNECT_BARRIER)) {
- LCONSOLE_WARN("%s: the MDT %s does not support "
- "write barrier, disable barrier "
- "on the whole system.\n",
+ LCONSOLE_WARN("%s: the MDT %s does not support write barrier, disable barrier on the whole system.\n",
obd->obd_name, mti->mti_svname);
b_fsdb->fsdb_barrier_disabled = 1;
obd->obd_name, mti->mti_svname);
b_fsdb->fsdb_barrier_disabled = 1;
} else if (mti->mti_flags &
(LDD_F_SV_TYPE_OST | LDD_F_SV_TYPE_MDT)) {
rc = mgs_erase_log(tsi->tsi_env, mgs, mti->mti_svname);
} else if (mti->mti_flags &
(LDD_F_SV_TYPE_OST | LDD_F_SV_TYPE_MDT)) {
rc = mgs_erase_log(tsi->tsi_env, mgs, mti->mti_svname);
- LCONSOLE_WARN("%s: Regenerating %s log by user "
- "request: rc = %d\n",
+ LCONSOLE_WARN("%s: Regenerating %s log by user request: rc = %d\n",
obd->obd_name, mti->mti_svname, rc);
if (rc)
GOTO(out_norevoke, rc);
obd->obd_name, mti->mti_svname, rc);
if (rc)
GOTO(out_norevoke, rc);
* updating the logs - if we revoke at the end they will just update
* from where they left off.
*/
* updating the logs - if we revoke at the end they will just update
* from where they left off.
*/
- if (mti->mti_flags & LDD_F_UPDATE) {
- CDEBUG(D_MGS, "updating %s, index=%d\n", mti->mti_svname,
- mti->mti_stripe_index);
+ if (mti->mti_flags & LDD_F_UPDATE) {
+ CDEBUG(D_MGS, "updating %s, index=%d\n", mti->mti_svname,
+ mti->mti_stripe_index);
- /* create or update the target log
- and update the client/mdt logs */
+ /* create/update target log and update the client/mdt logs */
rc = mgs_write_log_target(tsi->tsi_env, mgs, mti, c_fsdb);
rc = mgs_write_log_target(tsi->tsi_env, mgs, mti, c_fsdb);
- if (rc) {
- CERROR("Failed to write %s log (%d)\n",
- mti->mti_svname, rc);
- GOTO(out, rc);
- }
+ if (rc) {
+ CERROR("Failed to write %s log (%d)\n",
+ mti->mti_svname, rc);
+ GOTO(out, rc);
+ }
mti->mti_flags &= ~(LDD_F_VIRGIN | LDD_F_UPDATE |
LDD_F_NEED_INDEX | LDD_F_WRITECONF);
mti->mti_flags |= LDD_F_REWRITE_LDD;
mti->mti_flags &= ~(LDD_F_VIRGIN | LDD_F_UPDATE |
LDD_F_NEED_INDEX | LDD_F_WRITECONF);
mti->mti_flags |= LDD_F_REWRITE_LDD;
out:
mgs_revoke_lock(mgs, c_fsdb, MGS_CFG_T_CONFIG);
out:
mgs_revoke_lock(mgs, c_fsdb, MGS_CFG_T_CONFIG);
if (ptr == NULL || len >= sizeof(mgi->mgi_fsname)) {
if (strcmp(logname, PARAMS_FILENAME) != 0)
if (ptr == NULL || len >= sizeof(mgi->mgi_fsname)) {
if (strcmp(logname, PARAMS_FILENAME) != 0)
- LCONSOLE_WARN("%s: non-config logname "
- "received: %s\n",
+ LCONSOLE_WARN("%s: non-config logname received: %s\n",
tgt_name(tsi->tsi_tgt),
logname);
/* not error, this can be llog test name */
tgt_name(tsi->tsi_tgt),
logname);
/* not error, this can be llog test name */
rc = mgs_fsc_attach(tsi->tsi_env, tsi->tsi_exp,
mgi->mgi_fsname);
if (rc && rc != -EEXIST) {
rc = mgs_fsc_attach(tsi->tsi_env, tsi->tsi_exp,
mgi->mgi_fsname);
if (rc && rc != -EEXIST) {
- LCONSOLE_WARN("%s: Unable to add client %s "
- "to file system %s: %d\n",
+ LCONSOLE_WARN("%s: Unable to add client %s to file system %s: %d\n",
tgt_name(tsi->tsi_tgt),
libcfs_nidstr(&req->rq_peer.nid),
mgi->mgi_fsname, rc);
tgt_name(tsi->tsi_tgt),
libcfs_nidstr(&req->rq_peer.nid),
mgi->mgi_fsname, rc);
exp->exp_connecting = 1;
spin_unlock(&exp->exp_lock);
exp->exp_connecting = 1;
spin_unlock(&exp->exp_lock);
- /* self-export doesn't need client data and ldlm initialization */
- if (unlikely(obd_uuid_equals(&exp->exp_obd->obd_uuid,
- &exp->exp_client_uuid)))
- return 0;
- return ldlm_init_export(exp);
+ /* self-export doesn't need client data and ldlm initialization */
+ if (unlikely(obd_uuid_equals(&exp->exp_obd->obd_uuid,
+ &exp->exp_client_uuid)))
+ return 0;
+ return ldlm_init_export(exp);
}
static inline int mgs_destroy_export(struct obd_export *exp)
{
}
static inline int mgs_destroy_export(struct obd_export *exp)
{
- target_destroy_export(exp);
- mgs_client_free(exp);
+ target_destroy_export(exp);
+ mgs_client_free(exp);
- if (unlikely(obd_uuid_equals(&exp->exp_obd->obd_uuid,
- &exp->exp_client_uuid)))
- RETURN(0);
+ if (unlikely(obd_uuid_equals(&exp->exp_obd->obd_uuid,
+ &exp->exp_client_uuid)))
+ RETURN(0);
- ldlm_destroy_export(exp);
+ ldlm_destroy_export(exp);
}
static int mgs_extract_fs_pool(char *arg, char *fsname, char *poolname)
}
static int mgs_extract_fs_pool(char *arg, char *fsname, char *poolname)
- /* Test for fsname.poolname format.
- * strlen() test if poolname is empty
- */
+ /* Test for fsname.poolname format. strlen test if poolname is empty */
ptr = strchr(arg, '.');
if (!ptr || !strlen(ptr))
return -EINVAL;
ptr = strchr(arg, '.');
if (!ptr || !strlen(ptr))
return -EINVAL;
GOTO(out_lcfg, rc = -EINVAL);
param = lustre_cfg_string(lcfg, 1);
if (strcmp(param, "1") == 0)
GOTO(out_lcfg, rc = -EINVAL);
param = lustre_cfg_string(lcfg, 1);
if (strcmp(param, "1") == 0)
break;
case LCFG_NODEMAP_ADD:
case LCFG_NODEMAP_DEL:
break;
case LCFG_NODEMAP_ADD:
case LCFG_NODEMAP_DEL:
static int mgs_iocontrol_pool(const struct lu_env *env,
struct mgs_device *mgs,
static int mgs_iocontrol_pool(const struct lu_env *env,
struct mgs_device *mgs,
- struct obd_ioctl_data *data)
+ struct obd_ioctl_data *data)
{
struct mgs_thread_info *mgi = mgs_env_info(env);
{
struct mgs_thread_info *mgi = mgs_env_info(env);
- int rc;
- struct lustre_cfg *lcfg = NULL;
- char *poolname = NULL;
- ENTRY;
+ int rc;
+ struct lustre_cfg *lcfg = NULL;
+ char *poolname = NULL;
+
+ ENTRY;
- OBD_ALLOC(poolname, LOV_MAXPOOLNAME + 1);
+ OBD_ALLOC(poolname, LOV_MAXPOOLNAME + 1);
if (poolname == NULL)
RETURN(-ENOMEM);
if (poolname == NULL)
RETURN(-ENOMEM);
CERROR("%s: unknown cfg record type: %d\n",
mgs->mgs_obd->obd_name, data->ioc_type);
GOTO(out_pool, rc = -EINVAL);
CERROR("%s: unknown cfg record type: %d\n",
mgs->mgs_obd->obd_name, data->ioc_type);
GOTO(out_pool, rc = -EINVAL);
if (data->ioc_plen1 > PAGE_SIZE)
GOTO(out_pool, rc = -E2BIG);
if (data->ioc_plen1 > PAGE_SIZE)
GOTO(out_pool, rc = -E2BIG);
- OBD_ALLOC(lcfg, data->ioc_plen1);
- if (lcfg == NULL)
- GOTO(out_pool, rc = -ENOMEM);
+ OBD_ALLOC(lcfg, data->ioc_plen1);
+ if (lcfg == NULL)
+ GOTO(out_pool, rc = -ENOMEM);
if (copy_from_user(lcfg, data->ioc_pbuf1, data->ioc_plen1))
GOTO(out_lcfg, rc = -EFAULT);
if (copy_from_user(lcfg, data->ioc_pbuf1, data->ioc_plen1))
GOTO(out_lcfg, rc = -EFAULT);
if (lcfg->lcfg_bufcount < 2)
GOTO(out_lcfg, rc = -EFAULT);
if (lcfg->lcfg_bufcount < 2)
GOTO(out_lcfg, rc = -EFAULT);
- /* first arg is always <fsname>.<poolname> */
+ /* first arg is always <fsname>.<poolname> */
rc = mgs_extract_fs_pool(lustre_cfg_string(lcfg, 1), mgi->mgi_fsname,
poolname);
if (rc)
GOTO(out_lcfg, rc);
rc = mgs_extract_fs_pool(lustre_cfg_string(lcfg, 1), mgi->mgi_fsname,
poolname);
if (rc)
GOTO(out_lcfg, rc);
- switch (lcfg->lcfg_command) {
+ switch (lcfg->lcfg_command) {
- if (lcfg->lcfg_bufcount != 2)
+ if (lcfg->lcfg_bufcount != 2)
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_NEW, mgi->mgi_fsname,
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_NEW, mgi->mgi_fsname,
- poolname, NULL);
- break;
+ poolname, NULL);
+ break;
- if (lcfg->lcfg_bufcount != 3)
+ if (lcfg->lcfg_bufcount != 3)
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_ADD, mgi->mgi_fsname,
poolname, lustre_cfg_string(lcfg, 2));
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_ADD, mgi->mgi_fsname,
poolname, lustre_cfg_string(lcfg, 2));
- if (lcfg->lcfg_bufcount != 3)
+ if (lcfg->lcfg_bufcount != 3)
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_REM, mgi->mgi_fsname,
poolname, lustre_cfg_string(lcfg, 2));
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_REM, mgi->mgi_fsname,
poolname, lustre_cfg_string(lcfg, 2));
- if (lcfg->lcfg_bufcount != 2)
+ if (lcfg->lcfg_bufcount != 2)
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_DEL, mgi->mgi_fsname,
GOTO(out_lcfg, rc = -EINVAL);
rc = mgs_pool_cmd(env, mgs, LCFG_POOL_DEL, mgi->mgi_fsname,
- poolname, NULL);
- break;
+ poolname, NULL);
+ break;
- if (rc) {
- CERROR("OBD_IOC_POOL err %d, cmd %X for pool %s.%s\n",
+ if (rc) {
+ CERROR("OBD_IOC_POOL err %d, cmd %X for pool %s.%s\n",
rc, lcfg->lcfg_command, mgi->mgi_fsname, poolname);
GOTO(out_lcfg, rc);
rc, lcfg->lcfg_command, mgi->mgi_fsname, poolname);
GOTO(out_lcfg, rc);
out_lcfg:
OBD_FREE(lcfg, data->ioc_plen1);
out_pool:
OBD_FREE(poolname, LOV_MAXPOOLNAME + 1);
out_lcfg:
OBD_FREE(lcfg, data->ioc_plen1);
out_pool:
OBD_FREE(poolname, LOV_MAXPOOLNAME + 1);
}
/* from mdt_iocontrol */
}
/* from mdt_iocontrol */
struct obd_connect_data *data = NULL;
struct obd_device *obd;
int rc;
struct obd_connect_data *data = NULL;
struct obd_device *obd;
int rc;
ENTRY;
OBD_ALLOC_PTR(data);
ENTRY;
OBD_ALLOC_PTR(data);
[LDLM_ENQUEUE - LDLM_FIRST_OPC] = {
.th_name = "LDLM_ENQUEUE",
/* don't use th_fail_id for MGS to don't interfere with MDS tests.
[LDLM_ENQUEUE - LDLM_FIRST_OPC] = {
.th_name = "LDLM_ENQUEUE",
/* don't use th_fail_id for MGS to don't interfere with MDS tests.
- * * There are no tests for MGS with OBD_FAIL_LDLM_ENQUEUE_NET so it
- * * is safe. If such tests will be needed we have to distinguish
- * * MDS and MGS fail ids, e.g use OBD_FAIL_MGS_ENQUEUE_NET for MGS
- * * instead of common OBD_FAIL_LDLM_ENQUEUE_NET */
+ * There are no tests for MGS with OBD_FAIL_LDLM_ENQUEUE_NET so it
+ * is safe. If such tests will be needed we have to distinguish
+ * MDS and MGS fail ids, e.g use OBD_FAIL_MGS_ENQUEUE_NET for MGS
+ * instead of common OBD_FAIL_LDLM_ENQUEUE_NET
+ */
.th_fail_id = 0,
.th_opc = LDLM_ENQUEUE,
.th_flags = HAS_KEY,
.th_fail_id = 0,
.th_opc = LDLM_ENQUEUE,
.th_flags = HAS_KEY,
};
static struct tgt_handler mgs_llog_handlers[] = {
};
static struct tgt_handler mgs_llog_handlers[] = {
-TGT_LLOG_HDL (0, LLOG_ORIGIN_HANDLE_CREATE, mgs_llog_open),
-TGT_LLOG_HDL (0, LLOG_ORIGIN_HANDLE_NEXT_BLOCK, tgt_llog_next_block),
-TGT_LLOG_HDL (0, LLOG_ORIGIN_HANDLE_READ_HEADER, tgt_llog_read_header),
-TGT_LLOG_HDL (0, LLOG_ORIGIN_HANDLE_PREV_BLOCK, tgt_llog_prev_block),
+TGT_LLOG_HDL(0, LLOG_ORIGIN_HANDLE_CREATE, mgs_llog_open),
+TGT_LLOG_HDL(0, LLOG_ORIGIN_HANDLE_NEXT_BLOCK, tgt_llog_next_block),
+TGT_LLOG_HDL(0, LLOG_ORIGIN_HANDLE_READ_HEADER, tgt_llog_read_header),
+TGT_LLOG_HDL(0, LLOG_ORIGIN_HANDLE_PREV_BLOCK, tgt_llog_prev_block),
};
static struct tgt_opc_slice mgs_common_slice[] = {
};
static struct tgt_opc_slice mgs_common_slice[] = {
obd_obt_init(obd);
/* namespace for mgs llog */
obd_obt_init(obd);
/* namespace for mgs llog */
- obd->obd_namespace = ldlm_namespace_new(obd ,"MGS",
+ obd->obd_namespace = ldlm_namespace_new(obd, "MGS",
LDLM_NAMESPACE_SERVER,
LDLM_NAMESPACE_MODEST,
LDLM_NS_TYPE_MGT);
LDLM_NAMESPACE_SERVER,
LDLM_NAMESPACE_MODEST,
LDLM_NS_TYPE_MGT);
GOTO(err_fs, rc);
/* XXX: we need this trick till N:1 stack is supported
GOTO(err_fs, rc);
/* XXX: we need this trick till N:1 stack is supported
- * set "current" directory for named llogs */
+ * set "current" directory for named llogs
+ */
ctxt = llog_get_context(mgs->mgs_obd, LLOG_CONFIG_ORIG_CTXT);
LASSERT(ctxt);
ctxt->loc_dir = mgs->mgs_configs_dir;
ctxt = llog_get_context(mgs->mgs_obd, LLOG_CONFIG_ORIG_CTXT);
LASSERT(ctxt);
ctxt->loc_dir = mgs->mgs_configs_dir;
}
/* Setup params fsdb and log, so that other servers can make a local
}
/* Setup params fsdb and log, so that other servers can make a local
- * copy successfully when they are mounted. See LU-4783 */
+ * copy successfully when they are mounted. See LU-4783
+ */
rc = mgs_params_fsdb_setup(env, mgs);
if (rc)
/* params fsdb and log can be setup later */
rc = mgs_params_fsdb_setup(env, mgs);
if (rc)
/* params fsdb and log can be setup later */
struct lu_device *lu)
{
struct mgs_device *mgs = lu2mgs_dev(lu);
struct lu_device *lu)
{
struct mgs_device *mgs = lu2mgs_dev(lu);
ENTRY;
dt_device_fini(&mgs->mgs_dt_dev);
ENTRY;
dt_device_fini(&mgs->mgs_dt_dev);
struct lu_device *under;
struct lu_object *below;
int rc = 0;
struct lu_device *under;
struct lu_object *below;
int rc = 0;
ENTRY;
/* do no set .do_ops as mgs calls to bottom osd directly */
ENTRY;
/* do no set .do_ops as mgs calls to bottom osd directly */
CDEBUG(D_INFO, "object init, fid = "DFID"\n",
PFID(lu_object_fid(o)));
CDEBUG(D_INFO, "object init, fid = "DFID"\n",
PFID(lu_object_fid(o)));