[Ocfs2-commits] manish commits r2162 - trunk/fs/ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Apr 21 21:42:48 CDT 2005


Author: manish
Signed-off-by: mfasheh
Date: 2005-04-21 21:42:46 -0500 (Thu, 21 Apr 2005)
New Revision: 2162

Modified:
   trunk/fs/ocfs2/super.c
Log:
Return EINVAL on bad compat options

Signed-off-by: mfasheh


Modified: trunk/fs/ocfs2/super.c
===================================================================
--- trunk/fs/ocfs2/super.c	2005-04-22 00:14:22 UTC (rev 2161)
+++ trunk/fs/ocfs2/super.c	2005-04-22 02:42:46 UTC (rev 2162)
@@ -1095,6 +1095,7 @@
 	if ((i = OCFS2_HAS_INCOMPAT_FEATURE(osb->sb, ~OCFS2_FEATURE_INCOMPAT_SUPP))) {
 		LOG_ERROR_ARGS("couldn't mount because of unsupported "
 			       "optional features (%x).\n", i);
+		status = -EINVAL;
 		goto bail;
 	}
 	if (!(osb->sb->s_flags & MS_RDONLY) &&
@@ -1102,6 +1103,7 @@
 		LOG_ERROR_ARGS("couldn't mount RDWR because of "
 			       "unsupported optional features (%x).\n",
 			      i);
+		status = -EINVAL;
 		goto bail;
 	}
 



More information about the Ocfs2-commits mailing list