]> 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)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:49:59 +0000 (11:49 -0400)
commit31fd46624af5ac7f8fe3414bb2f1e5b4c6f70a05
treec14f5637693b3e43ff6052cd47d0ff66ddd4cced
parent1479a8fd9f90368b4100259e52ce6e655c1ce095
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