This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch andyp-fsck_cx in repository gfs2-utils.
commit b35124cd1701747f650a8725a7dad87b6e4d7b24 Author: Andrew Price anprice@redhat.com AuthorDate: Mon Aug 1 11:12:10 2022 +0100
fsck.gfs2: Pass fsck_cx into init_rindex()
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/fsck/initialize.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gfs2/fsck/initialize.c b/gfs2/fsck/initialize.c index c8c1724f..e08a5169 100644 --- a/gfs2/fsck/initialize.c +++ b/gfs2/fsck/initialize.c @@ -1525,8 +1525,9 @@ static int reconstruct_journals(struct fsck_cx *cx) /** * init_rindex - read in the rindex file */ -static int init_rindex(struct lgfs2_sbd *sdp) +static int init_rindex(struct fsck_cx *cx) { + struct lgfs2_sbd *sdp = cx->sdp; struct lgfs2_inode *ip;
if (sdp->gfs1) @@ -1646,7 +1647,7 @@ int initialize(struct fsck_cx *cx, int *all_clean) is damaged, we need the journals to repair it. That's because the journals likely contain rgrps and bitmaps, which we need to ignore when we're trying to find the rgrps. */ - if (init_rindex(sdp)) + if (init_rindex(cx)) return FSCK_ERROR;
if (fetch_rgrps(cx))