]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add ceph_encode_encrypted_dname() helper
authorXiubo Li <xiubli@redhat.com>
Mon, 14 Mar 2022 02:28:35 +0000 (10:28 +0800)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:49:59 +0000 (11:49 -0400)
commitd8bdf483b254ee93af3db5c8b887ca1c63d4e188
tree0f573d40b50a9721b6ddf40804de50874dfcfd91
parentbfe4fe14e35d83fd4545a04bb624ba52ce3b495b
ceph: add ceph_encode_encrypted_dname() helper

Add a new helper that basically calls ceph_encode_encrypted_fname, but
with a qstr pointer instead of a dentry pointer. This will make it
simpler to decrypt names in a readdir reply, before we have a dentry.

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