[Ocfs2-commits] jlbec commits r1251 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Jul 8 22:17:08 CDT 2004


Author: jlbec
Date: 2004-07-08 21:17:06 -0500 (Thu, 08 Jul 2004)
New Revision: 1251

Modified:
   trunk/src/namei.c
Log:

o Forgot to check for EMLINK on mkdir(2)



Modified: trunk/src/namei.c
===================================================================
--- trunk/src/namei.c	2004-07-08 20:39:18 UTC (rev 1250)
+++ trunk/src/namei.c	2004-07-09 02:17:06 UTC (rev 1251)
@@ -205,6 +205,11 @@
 		goto leave;
 	}
 
+	if (S_ISDIR(mode) && (dir->i_nlink >= OCFS2_LINK_MAX)) {
+		status = -EMLINK;
+		goto leave;
+	}
+
 	inode = new_inode (dir->i_sb);
 	if (IS_ERR (inode)) {
 		status = PTR_ERR(inode);



More information about the Ocfs2-commits mailing list