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 f75e15788c98c5dc69aab5960dba891036049000
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Mon Aug 1 10:53:52 2022 +0100
fsck.gfs2: Pass fsck_cx into sb_repair()
Signed-off-by: Andrew Price <anprice(a)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 be752d69..2126fe19 100644
--- a/gfs2/fsck/initialize.c
+++ b/gfs2/fsck/initialize.c
@@ -1221,8 +1221,9 @@ static int peruse_metadata(struct lgfs2_sbd *sdp, uint64_t
startblock)
* Assumes: device is open.
* The biggest RG size is 2GB
*/
-static int sb_repair(struct lgfs2_sbd *sdp)
+static int sb_repair(struct fsck_cx *cx)
{
+ struct lgfs2_sbd *sdp = cx->sdp;
uint64_t half;
uint32_t known_bsize = 0;
int error = 0;
@@ -1350,7 +1351,7 @@ static int fill_super_block(struct fsck_cx *cx)
}
ret = lgfs2_read_sb(sdp);
if (ret < 0) {
- if (sb_repair(sdp) != 0)
+ if (sb_repair(cx) != 0)
return -1; /* unrepairable, so exit */
/* Now that we've tried to repair it, re-read it. */
ret = lgfs2_read_sb(sdp);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.