Whamcloud - gitweb
LU-14098 obdclass: try to skip corrupted llog records
authorAlex Zhuravlev <bzzz@whamcloud.com>
Mon, 17 Oct 2022 19:31:56 +0000 (12:31 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 27 Oct 2022 03:15:48 +0000 (03:15 +0000)
if llog's header or record is found corrupted, then
ignore the remaining records and try with the next one.

Lustre-change: https://review.whamcloud.com/40754
Lustre-commit: 910eb97c1b43a44a9da2ae14c3b83e28ca6342fc

Fixes: 186f083722 ("LU-11924 osp: combine llog cancel operations")

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: If47ec1fc1e2eaf64be7ba08d3aa9c2b93903c0cf
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/48893
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/llog_cat.c

index feb825e..fef083f 100644 (file)
@@ -788,8 +788,7 @@ int llog_cat_cancel_records(const struct lu_env *env,
        }
        if (failed)
                CERROR("%s: fail to cancel %d of %d llog-records: rc = %d\n",
-                      cathandle->lgh_ctxt->loc_obd->obd_name, failed, count,
-                      rc);
+                      loghandle2name(cathandle), failed, count, rc);
        RETURN(rc);
 }
 EXPORT_SYMBOL(llog_cat_cancel_records);