This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch andyp-removeexit
in repository gfs2-utils.
commit a48fbe6b24a32e4221a5dac5e81cd44a43ff0305
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Tue Jan 10 15:29:09 2023 +0000
Don't call exit() in lgfs2_write_journal
Propagate the error condition from lgfs2_build_height() to callers.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/libgfs2/structures.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gfs2/libgfs2/structures.c b/gfs2/libgfs2/structures.c
index 45c3a5ce..faeac9da 100644
--- a/gfs2/libgfs2/structures.c
+++ b/gfs2/libgfs2/structures.c
@@ -188,7 +188,7 @@ int lgfs2_write_journal(struct lgfs2_inode *jnl, unsigned bsize,
unsigned int bl
/* not broken up by indirect block pages. */
height = lgfs2_calc_tree_height(jnl, (blocks + 1) * bsize);
if (lgfs2_build_height(jnl, height))
- exit(1);
+ return -1;
for (x = 0; x < blocks; x++) {
struct lgfs2_buffer_head *bh = lgfs2_get_file_buf(jnl, x, 1);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date