]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: convert ceph_ll_opendir to UserPerm
authorJeff Layton <jlayton@redhat.com>
Mon, 24 Oct 2016 14:03:00 +0000 (10:03 -0400)
committerJeff Layton <jlayton@redhat.com>
Tue, 25 Oct 2016 17:06:29 +0000 (13:06 -0400)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/include/cephfs/libcephfs.h
src/libcephfs.cc

index 39582af5113869ed1b42727ce1dcf32fd7899bb1..746c5c797006ce43ae54744c05752a014565a737 100644 (file)
@@ -1493,7 +1493,7 @@ int ceph_ll_link(struct ceph_mount_info *cmount, struct Inode *in,
                 struct Inode *newparent, const char *name,
                 const UserPerm *perms);
 int ceph_ll_opendir(struct ceph_mount_info *cmount, struct Inode *in,
-                   struct ceph_dir_result **dirpp, int uid, int gid);
+                   struct ceph_dir_result **dirpp, const UserPerm *perms);
 int ceph_ll_releasedir(struct ceph_mount_info *cmount,
                       struct ceph_dir_result* dir);
 int ceph_ll_rename(struct ceph_mount_info *cmount, struct Inode *parent,
index dd2e648afc95383fce23dc47807531ae78244768..664fb809fd8e24779a5e87f12bf6ef46fc7fd92f 100644 (file)
@@ -1576,11 +1576,10 @@ extern "C" int ceph_ll_link(class ceph_mount_info *cmount,
 extern "C" int ceph_ll_opendir(class ceph_mount_info *cmount,
                               Inode *in,
                               struct ceph_dir_result **dirpp,
-                              int uid, int gid)
+                              const UserPerm *perms)
 {
-  UserPerm perms(uid, gid);
   return (cmount->get_client()->ll_opendir(in, O_RDONLY, (dir_result_t**) dirpp,
-                                          perms));
+                                          *perms));
 }
 
 extern "C" int ceph_ll_releasedir(class ceph_mount_info *cmount,