Lines Matching refs:attrs
81 static int orangefs_inode_flags(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_flags() argument
84 if (attrs->flags & ORANGEFS_IMMUTABLE_FL) in orangefs_inode_flags()
88 if (attrs->flags & ORANGEFS_APPEND_FL) in orangefs_inode_flags()
92 if (attrs->flags & ORANGEFS_NOATIME_FL) in orangefs_inode_flags()
99 static int orangefs_inode_perms(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_perms() argument
103 if (attrs->perms & ORANGEFS_O_EXECUTE) in orangefs_inode_perms()
105 if (attrs->perms & ORANGEFS_O_WRITE) in orangefs_inode_perms()
107 if (attrs->perms & ORANGEFS_O_READ) in orangefs_inode_perms()
110 if (attrs->perms & ORANGEFS_G_EXECUTE) in orangefs_inode_perms()
112 if (attrs->perms & ORANGEFS_G_WRITE) in orangefs_inode_perms()
114 if (attrs->perms & ORANGEFS_G_READ) in orangefs_inode_perms()
117 if (attrs->perms & ORANGEFS_U_EXECUTE) in orangefs_inode_perms()
119 if (attrs->perms & ORANGEFS_U_WRITE) in orangefs_inode_perms()
121 if (attrs->perms & ORANGEFS_U_READ) in orangefs_inode_perms()
124 if (attrs->perms & ORANGEFS_G_SGID) in orangefs_inode_perms()
126 if (attrs->perms & ORANGEFS_U_SUID) in orangefs_inode_perms()
137 struct ORANGEFS_sys_attr_s *attrs, in copy_attributes_from_inode() argument
142 if (!iattr || !inode || !attrs) { in copy_attributes_from_inode()
147 attrs); in copy_attributes_from_inode()
154 attrs->mask = 0; in copy_attributes_from_inode()
156 attrs->owner = from_kuid(&init_user_ns, iattr->ia_uid); in copy_attributes_from_inode()
157 attrs->mask |= ORANGEFS_ATTR_SYS_UID; in copy_attributes_from_inode()
158 gossip_debug(GOSSIP_UTILS_DEBUG, "(UID) %d\n", attrs->owner); in copy_attributes_from_inode()
161 attrs->group = from_kgid(&init_user_ns, iattr->ia_gid); in copy_attributes_from_inode()
162 attrs->mask |= ORANGEFS_ATTR_SYS_GID; in copy_attributes_from_inode()
163 gossip_debug(GOSSIP_UTILS_DEBUG, "(GID) %d\n", attrs->group); in copy_attributes_from_inode()
167 attrs->mask |= ORANGEFS_ATTR_SYS_ATIME; in copy_attributes_from_inode()
169 attrs->atime = (time64_t)iattr->ia_atime.tv_sec; in copy_attributes_from_inode()
170 attrs->mask |= ORANGEFS_ATTR_SYS_ATIME_SET; in copy_attributes_from_inode()
174 attrs->mask |= ORANGEFS_ATTR_SYS_MTIME; in copy_attributes_from_inode()
176 attrs->mtime = (time64_t)iattr->ia_mtime.tv_sec; in copy_attributes_from_inode()
177 attrs->mask |= ORANGEFS_ATTR_SYS_MTIME_SET; in copy_attributes_from_inode()
181 attrs->mask |= ORANGEFS_ATTR_SYS_CTIME; in copy_attributes_from_inode()
212 attrs->perms = ORANGEFS_util_translate_mode(tmp_mode); in copy_attributes_from_inode()
213 attrs->mask |= ORANGEFS_ATTR_SYS_PERM; in copy_attributes_from_inode()
232 struct ORANGEFS_sys_attr_s *attrs, char *link_target) in orangefs_inode_is_stale() argument
235 int type = orangefs_inode_type(attrs->objtype); in orangefs_inode_is_stale()