]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: wire up alternate_name
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 11 Jan 2021 21:39:27 +0000 (13:39 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Sat, 16 Jan 2021 01:30:40 +0000 (17:30 -0800)
commite65b8dcad1d8b71d5dda6c29bc174dc5e069438f
tree113e173ab884bf68f4a4306bca2a9a9ffce4ea6d
parentb91490d35319b6e215cc9fc82e7ca5af55e2e309
client: wire up alternate_name

Here we're exposing a public Client::walk (aka path_walk) so that the
user can inspect dentries (not something normally possible in POSIX).
We're going to skip exposing such an interface in libcephfs since
there's no reason to do that (who would use it?) except for testing.
Instead, a follow-up PR will add Client tests (for the first time, yay!)
that will exercise this code.

Also, ideally we'd also expose alternate_name via readdir results but
that is a bit more complicated since dirents do not normally refer to
external memory. So, just rely on Client::walk for testing for now.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/client/Client.cc
src/client/Client.h
src/client/MetaRequest.h
src/messages/MClientRequest.h