Whamcloud - gitweb
* Compiles after merging b1_4
[fs/lustre-release.git] / lustre / obdclass / uuid.c
index 2226f90..dd66ae5 100644 (file)
@@ -141,26 +141,3 @@ void class_uuid_unparse(class_uuid_t uu, struct obd_uuid *out)
                uuid.node[0], uuid.node[1], uuid.node[2],
                uuid.node[3], uuid.node[4], uuid.node[5]);
 }
-
-struct obd_device *client_tgtuuid2obd(struct obd_uuid *tgtuuid)
-{
-        int i;
-
-        for (i = 0; i < MAX_OBD_DEVICES; i++) {
-                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)) {
-                        struct client_obd *cli = &obd->u.cli;
-                        struct obd_import *imp = cli->cl_import;
-                        if (strncmp(tgtuuid->uuid, imp->imp_target_uuid.uuid,
-                                    sizeof(imp->imp_target_uuid)) == 0)
-                                return obd;
-                }
-        }
-
-        return NULL;
-}