[Ocfs2-commits] mfasheh commits r1249 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Jul 8 15:30:28 CDT 2004


Author: mfasheh
Date: 2004-07-08 14:30:26 -0500 (Thu, 08 Jul 2004)
New Revision: 1249

Modified:
   trunk/src/file.c
Log:
* allow setattr on the root directory.



Modified: trunk/src/file.c
===================================================================
--- trunk/src/file.c	2004-07-08 19:28:52 UTC (rev 1248)
+++ trunk/src/file.c	2004-07-08 19:30:26 UTC (rev 1249)
@@ -1351,18 +1351,6 @@
 		LOG_ERROR_STR ("bad inode or root inode");
 		goto bail;
 	}
-	if (dentry == inode->i_sb->s_root) {
-#ifdef ALLOW_LOCAL_ROOT_INODE_SETATTR
-		if (!(attr->ia_valid & (ATTR_SIZE| ATTR_MODE))) {
-			error = inode_change_ok (inode, attr);
-			if (!error)
-				error = inode_setattr (inode, attr);
-			goto bail;
-		}
-#endif
-		LOG_ERROR_STR("changes to root inode not allowed");
-		goto bail;
-	}
 
 	newsize = attr->ia_size;
 



More information about the Ocfs2-commits mailing list