CDEBUG(D_INFO, "Found OBD %s=%s device %d (%p) type %s at LMV idx %d\n",
obd->obd_name, obd->obd_uuid.uuid, obd->obd_minor, obd,
obd->obd_type->typ_name, i);
- LASSERT(strcmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME) == 0);
+ LASSERT(strcmp(obd->obd_type->typ_name, OBD_MDC_DEVICENAME) == 0);
if (tgt->active == activate) {
CDEBUG(D_INFO, "OBD %p already %sactive!\n", obd,
int rc;
ENTRY;
- if (strcmp(watched->obd_type->typ_name, LUSTRE_MDC_NAME)) {
+ if (strcmp(watched->obd_type->typ_name, OBD_MDC_DEVICENAME)) {
CERROR("unexpected notification of %s %s!\n",
watched->obd_type->typ_name,
watched->obd_name);
LASSERT(tgts != NULL);
- tgt_obd = class_find_client_obd(&tgts->uuid, LUSTRE_MDC_NAME,
+ tgt_obd = class_find_client_obd(&tgts->uuid, OBD_MDC_DEVICENAME,
&obd->obd_uuid);
if (!tgt_obd) {
CERROR("target %s not attached\n", tgts->uuid.uuid);
OBD_FREE(lmv->tgts, lmv->tgts_size);
}
- tgt_obd = class_find_client_obd(&lmv->tgts->uuid, LUSTRE_MDC_NAME,
+ tgt_obd = class_find_client_obd(&lmv->tgts->uuid, OBD_MDC_DEVICENAME,
&obd->obd_uuid);
if (!tgt_obd) {
CERROR("Target %s not attached\n", lmv->tgts->uuid.uuid);
struct obd_device *tgt_obd;
tgt_obd = class_find_client_obd(&tgt->uuid,
- LUSTRE_MDC_NAME,
+ OBD_MDC_DEVICENAME,
&obd->obd_uuid);
if (!tgt_obd) {
CERROR("can't set info %s, "