[Ocfs2-commits] khackel commits r969 - trunk/src

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Jun 2 02:07:25 CDT 2004


Author: khackel
Date: 2004-06-02 01:07:23 -0500 (Wed, 02 Jun 2004)
New Revision: 969

Modified:
   trunk/src/namei.c
Log:
fix for bug #81 by Xiaofeng Ling :)

(10396) ERROR at dir.c, 253: bad directory (dir #36300288) - no data block



Modified: trunk/src/namei.c
===================================================================
--- trunk/src/namei.c	2004-06-02 01:55:02 UTC (rev 968)
+++ trunk/src/namei.c	2004-06-02 06:07:23 UTC (rev 969)
@@ -526,7 +526,7 @@
 
 	status = -EBUSY;
 
-	if (!empty_dir(inode)) {
+	if (S_ISDIR (inode->i_mode) && !empty_dir(inode)) {
 		LOG_TRACE_STR ("dentry is not empty, cannot delete");
 		goto bail;
 	} else if (OCFS_I(inode)->open_hndl_cnt > 0) {



More information about the Ocfs2-commits mailing list