]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: pass a mask parameter to path_walk
authorJeff Layton <jlayton@redhat.com>
Mon, 29 Aug 2016 11:16:37 +0000 (07:16 -0400)
committerJeff Layton <jlayton@redhat.com>
Mon, 29 Aug 2016 11:16:37 +0000 (07:16 -0400)
commit37eb3b4ed07e12a6b5f849fd4e8c0247cbd59eed
tree84c83053794611e930b9dd8b49b8e63270d0ce1e
parent433b0289410edc34467017bf0765fa5e4e84fcb3
client: pass a mask parameter to path_walk

ll_walk expects to get a set of attributes out of a path_walk. Pass a
caps mask parameter into path_walk, and then apply it when we reach the
last component of the path.

This may prevent us from having to further iteract with the server after
the pathwalk, in some cases. If we know that we're going to need certain
caps to do the actual operation we can request them during the lookup
and may have all that we need by the time we go to do the real request.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/client/Client.cc
src/client/Client.h