struct obd_ioctl_data *data = karg;
int err = 0;
ENTRY;
+
+ MOD_INC_USE_COUNT;
switch (cmd) {
case OBD_IOC_LOV_GET_CONFIG: {
GOTO(out, err = -ENOTTY);
}
out:
+ MOD_DEC_USE_COUNT;
return err;
}
RETURN(0);
}
+
+ if (keylen == strlen("initial_recov") &&
+ memcmp(key, "initial_recov", strlen("initial_recov")) == 0) {
+ struct obd_import *imp = exp->exp_obd->u.cli.cl_import;
+ if (vallen != sizeof(int))
+ RETURN(-EINVAL);
+ imp->imp_initial_recov = *(int *)val;
+ CDEBUG(D_HA, "%s: set imp_no_init_recov = %d\n",
+ exp->exp_obd->obd_name,
+ imp->imp_initial_recov);
+ RETURN(0);
+ }
+
if (keylen < strlen("mds_conn") ||
memcmp(key, "mds_conn", strlen("mds_conn")) != 0)
RETURN(-EINVAL);