commit 8da48930377a3bdc9309e53ccc471a56bed8a57e
Author: Erez Zadok <[email protected]>
Date: Wed Sep 23 22:28:35 2009 -0400
Unionfs: fix unix sockets
Properly instantiate them as new inodes.
Signed-off-by: Erez Zadok <[email protected]>
diff --git a/fs/unionfs/main.c b/fs/unionfs/main.c
index b122de6..71ee412 100644
--- a/fs/unionfs/main.c
+++ b/fs/unionfs/main.c
@@ -129,6 +129,12 @@ skip:
/* only (our) lookup wants to do a d_add */
switch (flag) {
case INTERPOSE_DEFAULT:
+ /* for operations which create new inodes */
+ if (S_ISSOCK(inode->i_mode))
+ d_add(dentry, inode);
+ else
+ d_instantiate(dentry, inode);
+ break;
case INTERPOSE_REVAL_NEG:
d_instantiate(dentry, inode);
break;
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs