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,
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,