[Unionfs] Panic in unionfs 2.2.4

Erez Zadok ezk at cs.sunysb.edu
Sun Mar 30 17:26:10 EDT 2008


In message <20286507.735771206579536200.JavaMail.root at tahiti.vyatta.com>, Bob Gilligan writes:
[...]
> And I see the panic too in unionfs-2.3.1 running on our 2.6.23 kernel.  It is the same panic signature as before:  BUG at include/linux/dcache.h:322
> 
> I've filed a bug report on the problem:
> 
> https://bugzilla.filesystems.org/show_bug.cgi?id=611
> 
> Bob.

Bob, below is a fix to your bug #611.  Please verify it on your setup.
Thanks for the step-by-step tickle-the-bug script: it was very helpful.

Lucas, and others who've seen similar bugs, please let me know if the small
patch below fixes your oopses or not.

Thanks,
Erez.

--cut-here----cut-here----cut-here----cut-here----cut-here----cut-here----cut-here--


Unionfs: update lower mnts on rmdir with copyup

Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>

diff --git a/fs/unionfs/unlink.c b/fs/unionfs/unlink.c
index c66bb3e..cad0386 100644
--- a/fs/unionfs/unlink.c
+++ b/fs/unionfs/unlink.c
@@ -280,6 +280,8 @@ out:
 		    !unionfs_lower_inode_idx(inode, dend))
 			ibstart(inode) = ibend(inode) = -1;
 		d_drop(dentry);
+		/* update our lower vfsmnts, in case a copyup took place */
+		unionfs_postcopyup_setmnt(dentry);
 	}
 
 	if (namelist)


More information about the unionfs mailing list