-int llog_cat_initialize(struct obd_device *obd, int count,
- struct obd_uuid *uuid)
-{
- char name[32] = CATLIST;
- struct llog_catid *idarray;
- int size = sizeof(*idarray) * count;
- int rc;
- ENTRY;
-
- OBD_ALLOC(idarray, size);
- if (!idarray)
- RETURN(-ENOMEM);
-
- rc = llog_get_cat_list(obd, obd, name, count, idarray);
- if (rc) {
- CERROR("rc: %d\n", rc);
- GOTO(out, rc);
- }
-
- rc = obd_llog_init(obd, obd, count, idarray, uuid);
- if (rc) {
- CERROR("rc: %d\n", rc);
- GOTO(out, rc);
- }
-
- rc = llog_put_cat_list(obd, obd, name, count, idarray);
- if (rc) {
- CERROR("rc: %d\n", rc);
- GOTO(out, rc);
- }
-
- out:
- OBD_FREE(idarray, size);
- RETURN(rc);
-}
-EXPORT_SYMBOL(llog_cat_initialize);
-
-int obd_llog_init(struct obd_device *obd, struct obd_device *disk_obd,
- int count, struct llog_catid *logid, struct obd_uuid *uuid)
+int obd_llog_init(struct obd_device *obd, struct obd_llog_group *olg,
+ struct obd_device *disk_obd, int *index)