]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
fs: normalize file open flags internally used by cephfs 14998/head
authorJan Fajerski <jfajerski@suse.com>
Thu, 20 Apr 2017 16:38:43 +0000 (18:38 +0200)
committerJan Fajerski <jfajerski@suse.com>
Tue, 20 Jun 2017 08:14:44 +0000 (10:14 +0200)
commit3c4a5ea385c7d2f2dfe88328e2c5f7778928d92d
tree0a036c2b59eb43d5e3676eb8fd1153441eeff07b
parent2f4a775d5ffd170903c4412e4274ab2a188922ef
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>
(cherry picked from commit 88d2da5e93198e69435e288ce00d216d5fe27f80)

Conflicts:
src/client/Client.cc - trivial resolution, add
          ceph_flags_sys2wire when flags are logged
src/client/Client.cc
src/common/ceph_fs.cc
src/include/ceph_fs.h
src/mds/Server.cc