Whamcloud - gitweb
- cleanups in cmobd and others:
[fs/lustre-release.git] / lustre / obdclass / llog_obd.c
index 259bcbc..fac3dd5 100644 (file)
@@ -55,11 +55,11 @@ int obd_llog_setup(struct obd_device *obd, struct obd_llogs *llogs,
         if (op->lop_close == llog_lvfs_ops.lop_close) {
                 ctxt->loc_fsops = disk_obd->obd_fsops;
                 ctxt->loc_lvfs_ctxt = &disk_obd->obd_lvfs_ctxt;
-                if (!strcmp(disk_obd->obd_type->typ_name, LUSTRE_MDS_NAME)) {
+                if (!strcmp(disk_obd->obd_type->typ_name, OBD_MDS_DEVICENAME)) {
                         struct mds_obd *mds = &disk_obd->u.mds;
                         ctxt->loc_objects_dir = mds->mds_objects_dir;
                         ctxt->loc_logs_dir = mds->mds_logs_dir;
-                } else if (!strcmp(disk_obd->obd_type->typ_name, "confobd")) {
+                } else if (!strcmp(disk_obd->obd_type->typ_name, OBD_CONF_DEVICENAME)) {
                         struct conf_obd *confobd = &disk_obd->u.conf;
                         ctxt->loc_objects_dir = confobd->cfobd_objects_dir;
                         ctxt->loc_logs_dir = confobd->cfobd_logs_dir;