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 3c836469f6a80ea69cb35a55fa18b84833313f48
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Mon Aug 1 10:55:30 2022 +0100
fsck.gfs2: Pass fsck_cx into peruse_metadata()
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 2126fe19..c1955080 100644
--- a/gfs2/fsck/initialize.c
+++ b/gfs2/fsck/initialize.c
@@ -1192,8 +1192,9 @@ static int find_rgs_for_bsize(struct lgfs2_sbd *sdp, uint64_t
startblock,
* peruse_metadata - check a range of blocks for metadata
* Assumes: device is open.
*/
-static int peruse_metadata(struct lgfs2_sbd *sdp, uint64_t startblock)
+static int peruse_metadata(struct fsck_cx *cx, uint64_t startblock)
{
+ struct lgfs2_sbd *sdp = cx->sdp;
uint64_t blk, max_rg_size;
struct lgfs2_buffer_head *bh;
struct lgfs2_inode *ip;
@@ -1255,7 +1256,7 @@ static int sb_repair(struct fsck_cx *cx)
return -1;
}
/* Step 2 - look for the sytem dinodes */
- error = peruse_metadata(sdp, (GFS2_SB_ADDR * GFS2_BASIC_BLOCK) /
+ error = peruse_metadata(cx, (GFS2_SB_ADDR * GFS2_BASIC_BLOCK) /
LGFS2_DEFAULT_BSIZE);
if (error)
return error;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.