commit 8dd2dcc2030132b68d3631e1a21bc6a25ceb5217
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Fri Sep 19 18:49:21 2008 -0400

    Unionfs: don't open unhashed files
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index 51f10a2..16b8b3c 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -601,6 +601,15 @@ int unionfs_open(struct inode *inode, struct file *file)
                goto out_nofree;
        }
 
+#if 0
+#error this code is needed for 2.6.19 and newer, but breaks 2.6.18
+       /* don't open unhashed/deleted files */
+       if (d_deleted(dentry)) {
+               err = -ENOENT;
+               goto out_nofree;
+       }
+#endif
+
        file->private_data =
                kzalloc(sizeof(struct unionfs_file_info), GFP_KERNEL);
        if (unlikely(!UNIONFS_F(file))) {
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to