The following minimal patch catches the case on a 2.6 system where
the passed in nameidata is null (which is a valid scenario.)
This is what is causing file deletion to crash.
--rusty
Index: src/dcache.c
==================================================================---
src/dcache.c (revision 770)
+++ src/dcache.c (working copy)
@@ -52,7 +52,7 @@
int needs_trunc;
ocfs_find_inode_args args;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
- int flags = nd->flags;
+ int flags = nd ? nd->flags : 0;
#endif
LOG_ENTRY_ARGS ("(0x%08x, %d, '%*s')\n", dentry,
flags,
Mark Fasheh
2004-Mar-11 19:21 UTC
[Ocfs2-devel] Re: [PATCH]2.6 fix for revalidating an inode
On Thu, Mar 11, 2004 at 02:59:49PM -0800, Rusty Lynch wrote:> The following minimal patch catches the case on a 2.6 system where > the passed in nameidata is null (which is a valid scenario.) > > This is what is causing file deletion to crash.Ok, that one was easy to commit :) --Mark -- Mark Fasheh Software Developer, Oracle Corp mark.fasheh@oracle.com