Shaya Potter:
> I don't believe that's the problem here.
> 
> try this.

I see.
This patch will help you, if it is true that a dir just after mkdir is
always empty (even when some entries exist under same named dir on ro
branch).
This patch will stop checking lower priority branches when higher one is
marked as opaque.


Junjiro Okajima

--- unionfs-20050929-0844/dirhelper.cO  2005-09-29 21:44:03.000000000 +0900
+++ unionfs-20050929-0844/dirhelper.c   2005-10-06 16:34:33.000000000 +0900
@@ -169,7 +169,7 @@
        struct super_block *sb;
        struct file *hidden_file;
        struct unionfs_rdutil_callback *buf = NULL;
-       int bindex, bstart, bend;
+       int bindex, bstart, bend, bopaque;
 
        print_entry_location();
 
@@ -182,6 +182,9 @@
 
        bstart = dbstart(dentry);
        bend = dbend(dentry);
+       bopaque = dbopaque(dentry);
+       if (0 <= bopaque && bopaque < bend)
+               bend = bopaque;
 
        buf = KMALLOC(sizeof(struct unionfs_rdutil_callback), GFP_UNIONFS);
        if (!buf) {
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to