This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main in repository gfs2-utils.
The following commit(s) were added to refs/heads/main by this push: new 9e05fc40 mkfs.gfs2: Improve journal write error reporting 9e05fc40 is described below
commit 9e05fc407c2f75f72ebdfe965e3e62d814e65f3d Author: Andrew Price anprice@redhat.com AuthorDate: Thu Aug 4 14:58:38 2022 +0100
mkfs.gfs2: Improve journal write error reporting
Add the reason for failure to the error messages.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/mkfs/main_mkfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c index f552f934..06b95461 100644 --- a/gfs2/mkfs/main_mkfs.c +++ b/gfs2/mkfs/main_mkfs.c @@ -956,13 +956,15 @@ static int place_journals(struct lgfs2_sbd *sdp, lgfs2_rgrps_t rgs, struct mkfs_
result = lgfs2_write_filemeta(&in); if (result != 0) { - fprintf(stderr, _("Failed to write journal %u\n"), j); + fprintf(stderr, _("Failed to write journal %u: %s\n"), + j, strerror(errno)); return result; }
result = lgfs2_write_journal_data(&in); if (result != 0) { - fprintf(stderr, _("Failed to write data blocks for journal %u\n"), j); + fprintf(stderr, _("Failed to write data blocks for journal %u: %s\n"), + j, strerror(errno)); return result; } mkfs_journals[j] = in.i_num;