InodeRef cwd;
int path_walk(const filepath& fp, InodeRef *end, bool followsym=true,
int uid=-1, int gid=-1);
+ int path_walk(const filepath& fp, InodeRef *end, const UserPerm& perms,
+ bool followsym=true) {
+ return path_walk(fp, end, followsym, perms.uid(), perms.gid());
+ }
+
int fill_stat(Inode *in, struct stat *st, frag_info_t *dirstat=0, nest_info_t *rstat=0);
int fill_stat(InodeRef& in, struct stat *st, frag_info_t *dirstat=0, nest_info_t *rstat=0) {
return fill_stat(in.get(), st, dirstat, rstat);