From: Greg Farnum Date: Thu, 7 Jul 2016 23:01:17 +0000 (-0700) Subject: client: add UserPerm-based path_walk() X-Git-Tag: v11.0.1~36^2~97 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=81665ba808fcef44e0fbf7e0cba55c72772cb1ff;p=ceph.git client: add UserPerm-based path_walk() Signed-off-by: Greg Farnum --- diff --git a/src/client/Client.h b/src/client/Client.h index d8ba521439f..8cc6ec912c5 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -536,6 +536,11 @@ protected: InodeRef cwd; int path_walk(const filepath& fp, InodeRef *end, bool followsym=true, int uid=-1, int gid=-1); + int path_walk(const filepath& fp, InodeRef *end, const UserPerm& perms, + bool followsym=true) { + return path_walk(fp, end, followsym, perms.uid(), perms.gid()); + } + int fill_stat(Inode *in, struct stat *st, frag_info_t *dirstat=0, nest_info_t *rstat=0); int fill_stat(InodeRef& in, struct stat *st, frag_info_t *dirstat=0, nest_info_t *rstat=0) { return fill_stat(in.get(), st, dirstat, rstat);