int _removexattr(Inode *in, const char *nm, const UserPerm& perms);
int _removexattr(InodeRef &in, const char *nm, const UserPerm& perms);
int _open(Inode *in, int flags, mode_t mode, Fh **fhp, int uid, int gid);
+ int _open(Inode *in, int flags, mode_t mode, Fh **fhp,
+ const UserPerm& perms) {
+ return _open(in, flags, mode, fhp, perms.uid(), perms.gid());
+ }
int _renew_caps(Inode *in);
int _create(Inode *in, const char *name, int flags, mode_t mode, InodeRef *inp, Fh **fhp,
int stripe_unit, int stripe_count, int object_size, const char *data_pool,
bool *created, int uid, int gid);
+ int _create(Inode *in, const char *name, int flags, mode_t mode, InodeRef *inp,
+ Fh **fhp, int stripe_unit, int stripe_count, int object_size,
+ const char *data_pool, bool *created, const UserPerm &perms) {
+ return _create(in, name, flags, mode, inp, fhp, stripe_unit, stripe_count,
+ object_size, data_pool, created, perms.uid(), perms.gid());
+ }
loff_t _lseek(Fh *fh, loff_t offset, int whence);
loff_t _lseek(Fh *fh, loff_t offset, int whence, const UserPerm& perms);