struct obd_device *obd = &obd_dev[i];
if (obd->obd_type == NULL)
continue;
- if ((strncmp(obd->obd_type->typ_name, LUSTRE_OSC_NAME,
- sizeof LUSTRE_OSC_NAME) == 0) ||
- (strncmp(obd->obd_type->typ_name, LUSTRE_MDC_NAME,
- sizeof LUSTRE_MDC_NAME) == 0)) {
+ if ((strncmp(obd->obd_type->typ_name, OBD_OSC_DEVICENAME,
+ sizeof(OBD_OSC_DEVICENAME)) == 0) ||
+ (strncmp(obd->obd_type->typ_name, OBD_MDC_DEVICENAME,
+ sizeof(OBD_MDC_DEVICENAME)) == 0)) {
struct client_obd *cli = &obd->u.cli;
struct obd_import *imp = cli->cl_import;
if (strncmp((char *)tgtuuid->uuid, (char *)imp->imp_target_uuid.uuid,