[Ocfs2-tools-commits] mfasheh commits r1195 - trunk/mount.ocfs2

svn-commits@oss.oracle.com svn-commits at oss.oracle.com
Thu May 4 16:36:23 CDT 2006


Author: mfasheh
Signed-off-by: smushran
Date: 2006-05-04 16:36:23 -0500 (Thu, 04 May 2006)
New Revision: 1195

Modified:
   trunk/mount.ocfs2/mount.ocfs2.c
Log:
* Print a more helpful message on mount errors.

Signed-off-by: smushran



Modified: trunk/mount.ocfs2/mount.ocfs2.c
===================================================================
--- trunk/mount.ocfs2/mount.ocfs2.c	2006-05-03 23:09:51 UTC (rev 1194)
+++ trunk/mount.ocfs2/mount.ocfs2.c	2006-05-04 21:36:23 UTC (rev 1195)
@@ -367,10 +367,12 @@
 
 	ret = mount(mo.dev, mo.dir, OCFS2_FS_NAME, mo.flags & ~MS_NOSYS, extra);
 	if (ret) {
+		ret = errno;
 		if (!(mo.flags & MS_REMOUNT) && !dev_ro)
 			stop_heartbeat(hb_ctl_path, mo.dev);
 		block_signals (SIG_UNBLOCK);
-		com_err(progname, errno, "while mounting %s on %s",
+		com_err(progname, ret, "while mounting %s on %s. "
+			"Check 'dmesg' for more information on this error.",
 			mo.dev, mo.dir);
 		goto bail;
 	}




More information about the Ocfs2-tools-commits mailing list