]> git-server-git.apps.pok.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)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:49:59 +0000 (11:49 -0400)
commit61c19fe07472d7f22336e9659f92b3e16c0a1b56
treed617c3f5c63d2f36b57138e6f8852a893df904fb
parentd8bdf483b254ee93af3db5c8b887ca1c63d4e188
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