]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: add helpers for converting names for userland presentation
authorJeff Layton <jlayton@kernel.org>
Fri, 26 Mar 2021 16:26:18 +0000 (12:26 -0400)
committerXiubo Li <xiubli@redhat.com>
Thu, 18 Aug 2022 02:59:51 +0000 (10:59 +0800)
commitde09ad9c6f9fffc84823df4d42f5f833b492939b
tree46a32cd14a9c4ccde310f82af602cd1fb6266709
parentba312ff96e9a0120cf56f298e919655390023fff
ceph: add helpers for converting names for userland presentation

Define a new ceph_fname struct that we can use to carry information
about encrypted dentry names. Add helpers for working with these
objects, including ceph_fname_to_usr which formats an encrypted filename
for userland presentation.

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