From: Greg Farnum Date: Wed, 3 Aug 2016 05:53:05 +0000 (-0700) Subject: client: remove uid-based path_walk() X-Git-Tag: v11.0.1~36^2~37 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=78d83d8e757de6363906a73376ed373f894ec3ab;p=ceph.git client: remove uid-based path_walk() Signed-off-by: Greg Farnum --- diff --git a/src/client/Client.h b/src/client/Client.h index a146d88aafed..d193fd207394 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -538,14 +538,6 @@ protected: InodeRef cwd; int path_walk(const filepath& fp, InodeRef *end, const UserPerm& perms, bool followsym=true); - int path_walk(const filepath& fp, InodeRef *end, bool followsym=true, - int uid=-1, int gid=-1) { - if (uid < 0) uid = get_uid(); - if (gid < 0) gid = get_gid(); - UserPerm perms(uid, gid); - return path_walk(fp, end, perms, followsym); - } - 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);