]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: add "fscrypt" flag support for inode_t
authorXiubo Li <xiubli@redhat.com>
Sun, 27 Sep 2020 03:53:55 +0000 (11:53 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 16 Jan 2021 01:30:39 +0000 (17:30 -0800)
commit7fe1c57846a42443f0258fd877d7166f33fd596f
treef7e9adeb3ffca5ceeb9d14090c1477010f5e6608
parent39f3440e36f1d1779861e32300128915b8047b66
mds: add "fscrypt" flag support for inode_t

If the client has set the "encryption.ctx" attribute, the MDS side
will set the "fscrypt" flag to truth, false as default.

The clients could use this flag to get to know whether the current
inodes are under enscrypted or not.

Fixes: https://tracker.ceph.com/issues/47162
Signed-off-by: Xiubo Li <xiubli@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