[Ocfs-devel] [Patch] for bug 81
Ling, Xiaofeng
xiaofeng.ling at intel.com
Wed Jun 2 14:53:36 CDT 2004
Index: namei.c
===================================================================
--- namei.c (revision 968)
+++ namei.c (working copy)
@@ -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) {
bug 81 description:
Env:
kernel 2.4.20
Dell Pc P4-2.1 512M, 80G
Reproduce Step:
1.load_ocfs2 and mount to /ocfs
2. touch /ocfs/file
3. rm /ocfs/file
With error message
(10396) ERROR at dir.c, 253: bad directory (dir #36300288) - no data
block
More information about the Ocfs-devel
mailing list