git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7f124f
)
ceph: fix file mode calculation
author
Sage Weil
<sage@newdream.net>
Tue, 19 Jul 2011 18:25:04 +0000
(11:25 -0700)
committer
Sage Weil
<sage@newdream.net>
Tue, 19 Jul 2011 18:25:04 +0000
(11:25 -0700)
open(2) must always include one of O_RDONLY, O_WRONLY, or O_RDWR. No need
for any O_APPEND special case.
Passing O_WRONLY|O_RDWR is undefined according to the man page, but the
Linux VFS interprets this as O_RDWR, so we'll do the same.
This fixes open(2) with flags O_RDWR|O_APPEND, which was incorrectly being
translated to readonly.
Reported-by: Fyodor Ustinov <ufm@ufm.su>
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/ceph_fs.c
patch
|
blob
|
history
diff --cc
net/ceph/ceph_fs.c
Simple merge