From: Jeff Layton Date: Mon, 2 Apr 2018 10:37:46 +0000 (-0400) Subject: client: remove init_groups X-Git-Tag: v13.1.0~356^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d93d53b3a6223801355202835da840e981de1350;p=ceph.git client: remove init_groups Nothing calls it. Signed-off-by: Jeff Layton --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 281f9d33548a..5b4305d0cde0 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -13911,13 +13911,6 @@ void Client::handle_conf_change(const struct md_config_t *conf, } } -void Client::init_groups(UserPerm *perms) -{ - gid_t *sgids; - int count = _getgrouplist(&sgids, perms->uid(), perms->gid()); - perms->init_gids(sgids, count); -} - void intrusive_ptr_add_ref(Inode *in) { in->get(); diff --git a/src/client/Client.h b/src/client/Client.h index e578add5d1f2..eaea2068e4f5 100644 --- a/src/client/Client.h +++ b/src/client/Client.h @@ -863,8 +863,6 @@ private: MAY_READ = 4, }; - void init_groups(UserPerm *groups); - int inode_permission(Inode *in, const UserPerm& perms, unsigned want); int xattr_permission(Inode *in, const char *name, unsigned want, const UserPerm& perms);