[Ocfs2-tools-commits] mfasheh commits r1172 - trunk/mkfs.ocfs2
svn-commits@oss.oracle.com
svn-commits at oss.oracle.com
Tue Feb 28 12:03:47 CST 2006
Author: mfasheh
Date: 2006-02-28 12:03:46 -0600 (Tue, 28 Feb 2006)
New Revision: 1172
Modified:
trunk/mkfs.ocfs2/mkfs.c
Log:
* Print proper error messages when we fail to format the journal in mkfs.
Modified: trunk/mkfs.ocfs2/mkfs.c
===================================================================
--- trunk/mkfs.ocfs2/mkfs.c 2006-02-28 02:50:01 UTC (rev 1171)
+++ trunk/mkfs.ocfs2/mkfs.c 2006-02-28 18:03:46 UTC (rev 1172)
@@ -2199,12 +2199,20 @@
ocfs2_system_inodes[JOURNAL_SYSTEM_INODE].si_name, i);
ret = ocfs2_lookup(fs, fs->fs_sysdir_blkno, jrnl_file,
strlen(jrnl_file), NULL, &blkno);
- if (ret)
+ if (ret) {
+ com_err(s->progname, ret,
+ "while looking up journal filename \"%.*s\"",
+ strlen(jrnl_file), jrnl_file);
goto error;
+ }
ret = ocfs2_make_journal(fs, blkno, journal_size_in_clusters);
- if (ret)
+ if (ret) {
+ com_err(s->progname, ret,
+ "while formatting journal \"%.*s\"",
+ strlen(jrnl_file), jrnl_file);
goto error;
+ }
}
ocfs2_close(fs);
More information about the Ocfs2-tools-commits
mailing list