projects
/
unionfs-2.6.20.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c44a845
)
Unionfs: force only one open lower file after copyup in open(2)
author
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 01:34:13 +0000
(21:34 -0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 01:34:13 +0000
(21:34 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/commonfops.c
patch
|
blob
|
history
diff --git
a/fs/unionfs/commonfops.c
b/fs/unionfs/commonfops.c
index 1301074407e69f0de753af12203d359e16094dc7..b154ccc95e19a734825cde79e9765acdd0755710 100644
(file)
--- a/
fs/unionfs/commonfops.c
+++ b/
fs/unionfs/commonfops.c
@@
-505,8
+505,11
@@
static int __open_file(struct inode *inode, struct file *file,
for (bindex = bstart - 1; bindex >= 0; bindex--) {
err = copyup_file(parent->d_inode, file,
bstart, bindex, size);
- if (!err)
+ if (!err) {
+ /* only one regular file open */
+ fbend(file) = fbstart(file);
break;
+ }
}
return err;
} else {