@@ -447,6 +447,8 @@
/* was OBD_FAIL_LLOG_CATINFO_NET 0x1309 until 2.3 */
#define OBD_FAIL_MDS_SYNC_CAPA_SL 0x1310
#define OBD_FAIL_SEQ_ALLOC 0x1311
+#define OBD_FAIL_PLAIN_RECORDS 0x1319
+#define OBD_FAIL_CATALOG_FULL_CHECK 0x131a
#define OBD_FAIL_LLITE 0x1400
#define OBD_FAIL_LLITE_FAULT_TRUNC_RACE 0x1401
@@ -453,6 +453,8 @@ int llog_process_or_fork(const struct lu_env *env,
llog_cb_t cb, void *data, void *catdata, bool fork)
{
struct llog_process_info *lpi;
+ struct llog_process_data *d = data;
+ struct llog_process_cat_data *cd = catdata;
int rc;
lpi = kzalloc(sizeof(*lpi), GFP_KERNEL);
@@ -463,6 +465,13 @@ int llog_process_or_fork(const struct lu_env *env,
lpi->lpi_cbdata = data;
lpi->lpi_catdata = catdata;
+ CDEBUG(D_OTHER,
+ "Processing " DFID " flags 0x%03x startcat %d startidx %d first_idx %d last_idx %d\n",
+ PFID(&loghandle->lgh_id.lgl_oi.oi_fid),
+ loghandle->lgh_hdr->llh_flags, d ? d->lpd_startcat : -1,
+ d ? d->lpd_startidx : -1, cd ? cd->lpcd_first_idx : -1,
+ cd ? cd->lpcd_last_idx : -1);
+
if (fork) {
struct task_struct *task;
@@ -244,6 +244,7 @@ static int llog_cat_process_or_fork(const struct lu_env *env,
* catalog bottom.
*/
startcat = 0;
+ d.lpd_startcat = 0;
if (rc != 0)
return rc;
}