]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: send altname in MClientRequest
authorJeff Layton <jlayton@kernel.org>
Thu, 14 Jan 2021 15:39:22 +0000 (10:39 -0500)
committerJeff Layton <jlayton@kernel.org>
Tue, 31 May 2022 15:49:59 +0000 (11:49 -0400)
commit8e65f9297bc1c9957229a3998e1fe7d3cc842909
tree966503dcedb0c36556b00305f1ddfc5c658f1140
parenta9a4d1b9641fd975581a5cfe9f3726689bcfe0a2
ceph: send altname in MClientRequest

In the event that we have a filename longer than CEPH_NOHASH_NAME_MAX,
we'll need to hash the tail of the filename. The client however will
still need to know the full name of the file if it has a key.

To support this, the MClientRequest field has grown a new alternate_name
field that we populate with the full (binary) crypttext of the filename.
This is then transmitted to the clients in readdir or traces as part of
the dentry lease.

Add support for populating this field when the filenames are very long.

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