]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: convert fscrypt flag to two opaque fields
authorJeff Layton <jlayton@redhat.com>
Thu, 29 Apr 2021 17:33:53 +0000 (13:33 -0400)
committerXiubo Li <xiubli@redhat.com>
Thu, 13 Jan 2022 13:08:21 +0000 (21:08 +0800)
commit1a593e1c3babf50a1c15161e348f617aabfceced
tree9354ee162ca002f0c790d4f9aae3d1516ba73b38
parentf0d2e1e372cd60ccdea4f6108822463a0cf71853
mds: convert fscrypt flag to two opaque fields

A flag isn't sufficient as we can't reasonably use an xattr to store the
context. Switch the fscrypt fields to two vectors of opaque bytes, one
governed by AUTH caps and the other by FILE.

Also remove the special handling for encryption.ctx xattr, since we
won't be using that going forward anyway.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Inode.h
src/mds/CInode.cc
src/mds/Server.cc
src/mds/mdstypes.h
src/messages/MClientReply.h