static int client_obd_connect(struct obd_device *obd, char *name,
struct lustre_handle *conn,
+ struct obd_connect_data *data,
unsigned long flags)
{
struct obd_device *cli_obd;
obd->obd_name, name);
RETURN(-EINVAL);
}
- rc = obd_connect(conn, cli_obd, &obd->obd_uuid, flags);
+ rc = obd_connect(conn, cli_obd, &obd->obd_uuid, data, flags);
if (rc) {
CERROR("error connecting to %s, err %d\n",
name, rc);
static int
cobd_connect(struct lustre_handle *conn, struct obd_device *obd,
- struct obd_uuid *cluuid, unsigned long flags)
+ struct obd_uuid *cluuid, struct obd_connect_data *data,
+ unsigned long flags)
{
struct lustre_handle cache_conn = { 0 };
struct cache_obd *cobd = &obd->u.cobd;
/* connecting cache */
rc = client_obd_connect(obd, cobd->cache_name,
- &cache_conn, flags);
+ &cache_conn, data, flags);
if (rc)
GOTO(err_discon, rc);
cobd->cache_exp = class_conn2export(&cache_conn);
struct lustre_handle conn = {0};
rc = client_obd_disconnect(obd, cobd->master_exp, 0);
- rc = client_obd_connect(obd, cobd->cache_name, &conn, 0);
+ rc = client_obd_connect(obd, cobd->cache_name, &conn,
+ NULL, 0);
if (rc)
GOTO(out, rc);
cobd->cache_exp = class_conn2export(&conn);
cooksize = cache->u.cli.cl_max_mds_cookiesize;
rc = client_obd_disconnect(obd, cobd->cache_exp, 0);
- rc = client_obd_connect(obd, cobd->master_name, &conn, 0);
+ rc = client_obd_connect(obd, cobd->master_name, &conn,
+ NULL, 0);
if (rc)
GOTO(out, rc);
cobd->master_exp = class_conn2export(&conn);