commit 0238ad9bcadcca62e4538cafa7ad979a1edbc39d
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Fri Sep 19 19:26:55 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 ed5f61b..19a0415 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