int ceph_ll_setattr(struct ceph_mount_info *cmount, struct Inode *in,
struct ceph_statx *stx, int mask, const UserPerm *perms);
int ceph_ll_open(struct ceph_mount_info *cmount, struct Inode *in, int flags,
- struct Fh **fh, int uid, int gid);
+ struct Fh **fh, const UserPerm *perms);
off_t ceph_ll_lseek(struct ceph_mount_info *cmount, struct Fh* filehandle,
off_t offset, int whence);
int ceph_ll_read(struct ceph_mount_info *cmount, struct Fh* filehandle,
}
extern "C" int ceph_ll_open(class ceph_mount_info *cmount, Inode *in,
- int flags, Fh **fh, int uid, int gid)
+ int flags, Fh **fh, const UserPerm *perms)
{
- UserPerm perms(uid, gid);
- return (cmount->get_client()->ll_open(in, flags, fh, perms));
+ return (cmount->get_client()->ll_open(in, flags, fh, *perms));
}
extern "C" int ceph_ll_read(class ceph_mount_info *cmount, Fh* filehandle,