Lines Matching refs:attrs

84 static int orangefs_inode_flags(struct ORANGEFS_sys_attr_s *attrs)  in orangefs_inode_flags()  argument
87 if (attrs->flags & ORANGEFS_IMMUTABLE_FL) in orangefs_inode_flags()
91 if (attrs->flags & ORANGEFS_APPEND_FL) in orangefs_inode_flags()
95 if (attrs->flags & ORANGEFS_NOATIME_FL) in orangefs_inode_flags()
102 static int orangefs_inode_perms(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_perms() argument
106 if (attrs->perms & ORANGEFS_O_EXECUTE) in orangefs_inode_perms()
108 if (attrs->perms & ORANGEFS_O_WRITE) in orangefs_inode_perms()
110 if (attrs->perms & ORANGEFS_O_READ) in orangefs_inode_perms()
113 if (attrs->perms & ORANGEFS_G_EXECUTE) in orangefs_inode_perms()
115 if (attrs->perms & ORANGEFS_G_WRITE) in orangefs_inode_perms()
117 if (attrs->perms & ORANGEFS_G_READ) in orangefs_inode_perms()
120 if (attrs->perms & ORANGEFS_U_EXECUTE) in orangefs_inode_perms()
122 if (attrs->perms & ORANGEFS_U_WRITE) in orangefs_inode_perms()
124 if (attrs->perms & ORANGEFS_U_READ) in orangefs_inode_perms()
127 if (attrs->perms & ORANGEFS_G_SGID) in orangefs_inode_perms()
129 if (attrs->perms & ORANGEFS_U_SUID) in orangefs_inode_perms()
140 struct ORANGEFS_sys_attr_s *attrs) in copy_attributes_from_inode() argument
143 attrs->mask = 0; in copy_attributes_from_inode()
145 attrs->owner = from_kuid(&init_user_ns, inode->i_uid); in copy_attributes_from_inode()
146 attrs->mask |= ORANGEFS_ATTR_SYS_UID; in copy_attributes_from_inode()
147 gossip_debug(GOSSIP_UTILS_DEBUG, "(UID) %d\n", attrs->owner); in copy_attributes_from_inode()
150 attrs->group = from_kgid(&init_user_ns, inode->i_gid); in copy_attributes_from_inode()
151 attrs->mask |= ORANGEFS_ATTR_SYS_GID; in copy_attributes_from_inode()
152 gossip_debug(GOSSIP_UTILS_DEBUG, "(GID) %d\n", attrs->group); in copy_attributes_from_inode()
156 attrs->mask |= ORANGEFS_ATTR_SYS_ATIME; in copy_attributes_from_inode()
158 attrs->atime = (time64_t) inode_get_atime_sec(inode); in copy_attributes_from_inode()
159 attrs->mask |= ORANGEFS_ATTR_SYS_ATIME_SET; in copy_attributes_from_inode()
163 attrs->mask |= ORANGEFS_ATTR_SYS_MTIME; in copy_attributes_from_inode()
165 attrs->mtime = (time64_t) inode_get_mtime_sec(inode); in copy_attributes_from_inode()
166 attrs->mask |= ORANGEFS_ATTR_SYS_MTIME_SET; in copy_attributes_from_inode()
170 attrs->mask |= ORANGEFS_ATTR_SYS_CTIME; in copy_attributes_from_inode()
179 attrs->perms = ORANGEFS_util_translate_mode(inode->i_mode); in copy_attributes_from_inode()
180 attrs->mask |= ORANGEFS_ATTR_SYS_PERM; in copy_attributes_from_inode()
216 struct ORANGEFS_sys_attr_s *attrs, char *link_target) in orangefs_inode_is_stale() argument
219 int type = orangefs_inode_type(attrs->objtype); in orangefs_inode_is_stale()