data->ocd_version = LUSTRE_VERSION_CODE;
}
+ rc = mgs_client_add(obd, exp, localdata);
+
if (rc) {
class_disconnect(exp);
} else {
if (exp == NULL || obd == NULL || cluuid == NULL)
RETURN(-EINVAL);
+ mgs_counter_incr(exp, LPROC_MGS_CONNECT);
+
if (data != NULL) {
data->ocd_connect_flags &= MGS_CONNECT_SUPPORTED;
exp->exp_connect_flags = data->ocd_connect_flags;
}
mti->mti_flags |= LDD_F_UPDATE;
/* Erased logs means start from scratch. */
- mti->mti_flags &= ~LDD_F_UPGRADE14;
+ mti->mti_flags &= ~LDD_F_UPGRADE14;
}
/* COMPAT_146 */
CERROR("Can't upgrade from 1.4 (%d)\n", rc);
GOTO(out, rc);
}
-
+
/* We're good to go */
mti->mti_flags |= LDD_F_UPDATE;
}
ENTRY;
target_destroy_export(exp);
+ mgs_client_free(exp);
ldlm_destroy_export(exp);
RETURN(0);
RETURN(0);
}
-static int mgs_iocontrol_pool(struct obd_device *obd,
+static int mgs_iocontrol_pool(struct obd_device *obd,
struct obd_ioctl_data *data)
{
int rc;