]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
fs: normalize file open flags internally used by cephfs 14822/head
authorJan Fajerski <jfajerski@suse.com>
Thu, 20 Apr 2017 16:38:43 +0000 (18:38 +0200)
committerJan Fajerski <jfajerski@suse.com>
Fri, 28 Apr 2017 15:29:41 +0000 (17:29 +0200)
commit88d2da5e93198e69435e288ce00d216d5fe27f80
treeb6c8aa344ba368ae8c6113fe7f5faff707df6340
parentbdcc25b88867769c2dd7aeacc4677a423b49f618
fs: normalize file open flags internally used by cephfs

The file open flags (O_foo) are platform specific. Normalize these flags
before they are send to the MDS. For processing of client messages the
MDS should only compare to these normalized flags.
Otherwise this can lead to bogus flags getting transmitted on ppc64.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/client/Client.cc
src/common/ceph_fs.cc
src/include/ceph_fs.h
src/mds/Server.cc