]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add support to readdir for encrypted filenames
authorXiubo Li <xiubli@redhat.com>
Mon, 10 Aug 2020 13:33:41 +0000 (09:33 -0400)
committerXiubo Li <xiubli@redhat.com>
Thu, 18 Aug 2022 02:59:52 +0000 (10:59 +0800)
commit40de1778a2aa135c60d8e4f799d0fc04c907853b
treeede7b774c14e4fabe4b01a8f49a22c7625a5f4c4
parent481d9b97fe9cae29c186900686bcce20bd80bb65
ceph: add support to readdir for encrypted filenames

Once we've decrypted the names in a readdir reply, we no longer need the
crypttext, so overwrite them in ceph_mds_reply_dir_entry with the
unencrypted names. Then in both ceph_readdir_prepopulate() and
ceph_readdir() we will use the dencrypted name directly.

[ jlayton: convert some BUG_ONs into error returns ]

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/crypto.c
fs/ceph/crypto.h
fs/ceph/dir.c
fs/ceph/inode.c
fs/ceph/mds_client.c
fs/ceph/mds_client.h