This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main
in repository gfs2-utils.
commit ce96408090e15e2e690b6db266ac19c87f08dc16
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Mon Jan 10 16:46:53 2022 +0000
libgfs2: Move debugging printf out of build_master()
mkfs.gfs2 is the only place it could ever get printed so move it there
instead.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/libgfs2/structures.c | 4 ----
gfs2/mkfs/main_mkfs.c | 4 ++++
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gfs2/libgfs2/structures.c b/gfs2/libgfs2/structures.c
index a562dc50..95ad3ac9 100644
--- a/gfs2/libgfs2/structures.c
+++ b/gfs2/libgfs2/structures.c
@@ -38,10 +38,6 @@ int build_master(struct gfs2_sbd *sdp)
if (sdp->master_dir == NULL)
return -1;
- if (cfg_debug) {
- printf("\nMaster dir:\n");
- lgfs2_dinode_print(bh->b_data);
- }
sdp->master_dir->bh_owned = 1;
return 0;
}
diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c
index 6f30b2d3..dbee5cab 100644
--- a/gfs2/mkfs/main_mkfs.c
+++ b/gfs2/mkfs/main_mkfs.c
@@ -1205,6 +1205,10 @@ int main(int argc, char *argv[])
fprintf(stderr, _("Error building '%s': %s\n"), "master",
strerror(errno));
exit(EXIT_FAILURE);
}
+ if (opts.debug) {
+ printf("Metafs inode:\n");
+ lgfs2_dinode_print(sbd.master_dir->i_bh->b_data);
+ }
sbd.sd_meta_dir = sbd.master_dir->i_num;
error = lgfs2_build_jindex(sbd.master_dir, mkfs_journals, opts.journals);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date