> > Finally unionfs does not return ETXTBSY and truncates the running
> > executable file illegally.
> 
> sorry, the patch is wrong.
> I will post again later.

here it is.

----------------------------------------
From: Tomas M <[EMAIL PROTECTED]>
        :::
> I thought that persistent inodes are already implemented for many 
> months, am I wrong?

I thought people are still working on it.


Junjiro Okajima


--- inode.c     26 Nov 2005 06:56:37 -0000      1.1
+++ inode.c     7 Dec 2005 16:12:05 -0000
@@ -919,8 +920,14 @@ static int unionfs_permission(struct ino
                if (err)
                        goto out;
                /* only the leftmost file matters. */
-               if (is_file)
+               if (is_file) {
+                       if (mask & MAY_WRITE) {
+                               err = get_write_access(hidden_inode);
+                               if (err)
+                                       goto out;
+                       }
                        break;
+               }
        }
 
       out:
_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to