projects
/
unionfs-2.6.36.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b901bb
)
Unionfs: force only one open lower file after copyup in open(2)
author
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 01:45:03 +0000
(21:45 -0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 01:45:03 +0000
(21:45 -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 7dfe0c7bc400f1af68802fe74b4c2243f56f2f43..5b2a6da6fe0ac7615bd469a8fcb1e047abb53d04 100644
(file)
--- a/
fs/unionfs/commonfops.c
+++ b/
fs/unionfs/commonfops.c
@@
-506,8
+506,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 {