Whamcloud - gitweb
- cleanups in cmobd and others:
[fs/lustre-release.git] / lustre / obdclass / uuid.c
index 44269a4..6f1c9c8 100644 (file)
@@ -150,10 +150,10 @@ struct obd_device *client_tgtuuid2obd(struct obd_uuid *tgtuuid)
                 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,