projects
/
unionfs-2.6.33.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a1859b
)
Unionfs: force only one open lower file after copyup in open(2)
author
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 6 Sep 2011 04:10:42 +0000
(
00:10
-0400)
committer
Erez Zadok
<ezk@cs.sunysb.edu>
Tue, 31 Jan 2012 05:06:24 +0000
(
00:06
-0500)
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 9ae2e618ce81e172a48aa90c28ae909426024cbf..0d2146cc81673252890c81ab7225f6fde00e55aa 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 {