]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: clean up file flags to file mode translation
authorSage Weil <sage@newdream.net>
Tue, 19 Jul 2011 18:25:46 +0000 (11:25 -0700)
committerSage Weil <sage@newdream.net>
Tue, 19 Jul 2011 18:25:46 +0000 (11:25 -0700)
commit62e6f36a35c1c6b48afb4568e24b541921fb8dbc
tree2d2a57f953fbac54ace6aa095c42ce9f3786c5f3
parent626f0b1ffef33dd7e1a4fe843a5a367415fe052d
mds: clean up file flags to file mode translation

There was some seriously wrong and ancient cruft in there.  open(2)
specifies that one of O_RDONLY, O_WRONLY, and O_RDWR must always be
specified.  Drop all the crazy.

Linux VFS interprets O_WRONLY|O_RDWR as read+write, so we'll do the same.

Signed-off-by: Sage Weil <sage@newdream.net>
src/include/ceph_fs.cc