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 95cd681c3144ad6d23aebea54109ba9efc23cd90
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Wed Jan 11 11:49:04 2023 +0000
libgfs2: Remove the remaining exit() calls
Phew.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/libgfs2/fs_ops.c | 2 +-
gfs2/libgfs2/gfs1.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gfs2/libgfs2/fs_ops.c b/gfs2/libgfs2/fs_ops.c
index db256227..bf22c787 100644
--- a/gfs2/libgfs2/fs_ops.c
+++ b/gfs2/libgfs2/fs_ops.c
@@ -1202,7 +1202,7 @@ restart:
.mh_format = cpu_to_be32(GFS2_FORMAT_LF)
};
if (lgfs2_meta_alloc(dip, &bn))
- exit(1);
+ return -1;
nbh = lgfs2_bget(dip->i_sbd, bn);
memcpy(nbh->b_data, &mh, sizeof(mh));
lgfs2_bmodified(nbh);
diff --git a/gfs2/libgfs2/gfs1.c b/gfs2/libgfs2/gfs1.c
index 531ba5a8..0f41dca6 100644
--- a/gfs2/libgfs2/gfs1.c
+++ b/gfs2/libgfs2/gfs1.c
@@ -207,7 +207,7 @@ int lgfs2_gfs1_writei(struct lgfs2_inode *ip, void *buf, uint64_t
offset,
if (!extlen){
new = 1;
if (lgfs2_gfs1_block_map(ip, lblock, &new, &dblock, &extlen, 0))
- exit(1);
+ return -1;
if (!dblock)
return -1;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by date