[Ocfs-devel] [Patch] for bug 81

Kurt Hackel Kurt.Hackel at oracle.com
Wed Jun 2 00:09:08 CDT 2004


Thank you very much!  Committed to revision 969.
-kurt

On Wed, Jun 02, 2004 at 01:53:36PM +0800, Ling, Xiaofeng wrote:
> 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
> _______________________________________________
> Ocfs-devel mailing list
> Ocfs-devel at oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs-devel


More information about the Ocfs-devel mailing list