Skip to content
Snippets Groups Projects
Commit 87bbe2fa authored by deshmukh's avatar deshmukh
Browse files

Fixes related to mount failure path cleanup

b=17752
i=umka
i=shadow
parent 16b9e913
No related branches found
No related tags found
No related merge requests found
...@@ -4276,14 +4276,13 @@ static int mdt_init0(const struct lu_env *env, struct mdt_device *m, ...@@ -4276,14 +4276,13 @@ static int mdt_init0(const struct lu_env *env, struct mdt_device *m,
} else { } else {
lsi = s2lsi(lmi->lmi_sb); lsi = s2lsi(lmi->lmi_sb);
fsoptions_to_mdt_flags(m, lsi->lsi_lmd->lmd_opts); fsoptions_to_mdt_flags(m, lsi->lsi_lmd->lmd_opts);
server_put_mount_2(dev, lmi->lmi_mnt);
/* CMD is supported only in IAM mode */ /* CMD is supported only in IAM mode */
ldd = lsi->lsi_ldd; ldd = lsi->lsi_ldd;
LASSERT(num); LASSERT(num);
node_id = simple_strtol(num, NULL, 10); node_id = simple_strtol(num, NULL, 10);
if (!(ldd->ldd_flags & LDD_F_IAM_DIR) && node_id) { if (!(ldd->ldd_flags & LDD_F_IAM_DIR) && node_id) {
CERROR("CMD Operation not allowed in IOP mode\n"); CERROR("CMD Operation not allowed in IOP mode\n");
RETURN(-EINVAL); GOTO(err_lmi, rc = -EINVAL);
} }
} }
......
...@@ -1135,6 +1135,7 @@ static int server_start_targets(struct super_block *sb, struct vfsmount *mnt) ...@@ -1135,6 +1135,7 @@ static int server_start_targets(struct super_block *sb, struct vfsmount *mnt)
if (rc) { if (rc) {
CERROR("failed to start server %s: %d\n", CERROR("failed to start server %s: %d\n",
lsi->lsi_ldd->ldd_svname, rc); lsi->lsi_ldd->ldd_svname, rc);
server_deregister_mount(lsi->lsi_ldd->ldd_svname);
GOTO(out_mgc, rc); GOTO(out_mgc, rc);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment