GIT: unionfs2-2.6.27.y: Unionfs: stop as soon as first writeable branch is found
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:17:57 EDT 2010
commit a2d50cce6b4bfc0da152a37fa3dfdb107f66ff49
Author: Erez Zadok <ezk at cs.sunysb.edu>
Date: Sat Apr 5 21:02:23 2008 -0400
Unionfs: stop as soon as first writeable branch is found
Signed-off-by: Erez Zadok <ezk at cs.sunysb.edu>
diff --git a/fs/unionfs/inode.c b/fs/unionfs/inode.c
index 582d08b..a1d7aaf 100644
--- a/fs/unionfs/inode.c
+++ b/fs/unionfs/inode.c
@@ -128,6 +128,8 @@ begin:
err = check_for_whiteout(dentry, lower_dentry);
if (err)
continue;
+ /* if get here, we can write to the branch */
+ break;
}
/*
* If istart wasn't already branch 0, and we got any error, then try
More information about the unionfs-cvs
mailing list