Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 34) sorted by relevance

12

/fs/kernfs/
Dinode.c68 struct kernfs_iattrs *attrs; in __kernfs_setattr() local
72 attrs = kernfs_iattrs(kn); in __kernfs_setattr()
73 if (!attrs) in __kernfs_setattr()
76 iattrs = &attrs->ia_iattr; in __kernfs_setattr()
138 static int kernfs_node_setsecdata(struct kernfs_iattrs *attrs, void **secdata, in kernfs_node_setsecdata() argument
144 old_secdata = attrs->ia_secdata; in kernfs_node_setsecdata()
145 old_secdata_len = attrs->ia_secdata_len; in kernfs_node_setsecdata()
147 attrs->ia_secdata = *secdata; in kernfs_node_setsecdata()
148 attrs->ia_secdata_len = *secdata_len; in kernfs_node_setsecdata()
158 struct kernfs_iattrs *attrs; in kernfs_iop_listxattr() local
[all …]
/fs/orangefs/
Dorangefs-utils.c81 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()
[all …]
/fs/hostfs/
Dhostfs_user.c194 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr() argument
200 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr()
202 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr()
204 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr()
208 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr()
210 if (fchown(fd, attrs->ia_uid, -1)) in set_attr()
212 } else if (chown(file, attrs->ia_uid, -1)) { in set_attr()
216 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr()
218 if (fchown(fd, -1, attrs->ia_gid)) in set_attr()
220 } else if (chown(file, -1, attrs->ia_gid)) { in set_attr()
[all …]
Dhostfs_kern.c809 struct hostfs_iattr attrs; in hostfs_setattr() local
822 attrs.ia_valid = 0; in hostfs_setattr()
824 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr()
825 attrs.ia_mode = attr->ia_mode; in hostfs_setattr()
828 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr()
829 attrs.ia_uid = from_kuid(&init_user_ns, attr->ia_uid); in hostfs_setattr()
832 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr()
833 attrs.ia_gid = from_kgid(&init_user_ns, attr->ia_gid); in hostfs_setattr()
836 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr()
837 attrs.ia_size = attr->ia_size; in hostfs_setattr()
[all …]
Dhostfs.h82 extern int set_attr(const char *file, struct hostfs_iattr *attrs, int fd);
/fs/cifs/
Dinode.c1104 cifs_set_file_info(struct inode *inode, struct iattr *attrs, unsigned int xid, argument
1112 if (attrs == NULL)
1119 if (attrs->ia_valid & ATTR_ATIME) {
1122 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_atime));
1126 if (attrs->ia_valid & ATTR_MTIME) {
1129 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_mtime));
1139 if (set_time && (attrs->ia_valid & ATTR_CTIME)) {
1142 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime));
1312 struct iattr *attrs = NULL; local
1365 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL);
[all …]
/fs/fat/
Dfat.h175 u8 attrs, umode_t mode) in fat_make_mode() argument
177 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode()
180 if (attrs & ATTR_DIR) in fat_make_mode()
189 u8 attrs = MSDOS_I(inode)->i_attrs; in fat_make_attrs() local
191 attrs |= ATTR_DIR; in fat_make_attrs()
193 attrs |= ATTR_RO; in fat_make_attrs()
194 return attrs; in fat_make_attrs()
197 static inline void fat_save_attrs(struct inode *inode, u8 attrs) in fat_save_attrs() argument
200 MSDOS_I(inode)->i_attrs = attrs & ATTR_UNUSED; in fat_save_attrs()
202 MSDOS_I(inode)->i_attrs = attrs & (ATTR_UNUSED | ATTR_RO); in fat_save_attrs()
/fs/exofs/
Dsuper.c268 struct osd_attr attrs[] = { in __sbi_read_stats() local
280 ios->in_attr = attrs; in __sbi_read_stats()
281 ios->in_attr_len = ARRAY_SIZE(attrs); in __sbi_read_stats()
289 ret = extract_attr_from_ios(ios, &attrs[0]); in __sbi_read_stats()
294 if (attrs[0].len) { in __sbi_read_stats()
297 if (unlikely(attrs[0].len != sizeof(*ess))) { in __sbi_read_stats()
300 __func__, attrs[0].len, sizeof(*ess)); in __sbi_read_stats()
304 ess = attrs[0].val_ptr; in __sbi_read_stats()
323 struct osd_attr attrs[] = { in exofs_sbi_write_stats() local
337 attrs[0].val_ptr = &sbi->s_ess; in exofs_sbi_write_stats()
[all …]
Dinode.c1076 struct osd_attr attrs[] = { in exofs_get_inode() local
1091 attrs[1].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs); in exofs_get_inode()
1092 attrs[2].len = exofs_on_disk_inode_layout_size(sbi->oc.numdevs); in exofs_get_inode()
1094 ios->in_attr = attrs; in exofs_get_inode()
1095 ios->in_attr_len = ARRAY_SIZE(attrs); in exofs_get_inode()
1110 ret = extract_attr_from_ios(ios, &attrs[0]); in exofs_get_inode()
1115 WARN_ON(attrs[0].len != EXOFS_INO_ATTR_SIZE); in exofs_get_inode()
1116 memcpy(inode, attrs[0].val_ptr, EXOFS_INO_ATTR_SIZE); in exofs_get_inode()
1118 ret = extract_attr_from_ios(ios, &attrs[1]); in exofs_get_inode()
1123 if (attrs[1].len) { in exofs_get_inode()
[all …]
/fs/ocfs2/
Dfilecheck.c219 struct attribute **attrs = NULL; in ocfs2_filecheck_create_sysfs() local
225 attrs = kmalloc(sizeof(struct attribute *) * 4, GFP_NOFS); in ocfs2_filecheck_create_sysfs()
226 if (!attrs) { in ocfs2_filecheck_create_sysfs()
230 attrs[0] = &ocfs2_attr_filecheck_chk.attr; in ocfs2_filecheck_create_sysfs()
231 attrs[1] = &ocfs2_attr_filecheck_fix.attr; in ocfs2_filecheck_create_sysfs()
232 attrs[2] = &ocfs2_attr_filecheck_set.attr; in ocfs2_filecheck_create_sysfs()
233 attrs[3] = NULL; in ocfs2_filecheck_create_sysfs()
235 attrgp.attrs = attrs; in ocfs2_filecheck_create_sysfs()
287 kfree(attrs); in ocfs2_filecheck_create_sysfs()
291 kfree(attrs); in ocfs2_filecheck_create_sysfs()
/fs/sysfs/
Dgroup.c27 if (grp->attrs) in remove_files()
28 for (attr = grp->attrs; *attr; attr++) in remove_files()
42 if (grp->attrs) { in create_files()
43 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files()
118 if (!grp->attrs && !grp->bin_attrs) { in internal_create_group()
294 for ((i = 0, attr = grp->attrs); *attr && !error; (++i, ++attr)) in sysfs_merge_group()
319 for (attr = grp->attrs; *attr; ++attr) in sysfs_unmerge_group()
/fs/coda/
Ddir.c141 struct coda_vattr attrs; in coda_create() local
147 0, mode, &newfid, &attrs); in coda_create()
151 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_create()
169 struct coda_vattr attrs; in coda_mkdir() local
178 attrs.va_mode = mode; in coda_mkdir()
180 name, len, &newfid, &attrs); in coda_mkdir()
184 inode = coda_iget(dir->i_sb, &newfid, &attrs); in coda_mkdir()
Dupcall.c202 struct CodaFid *newfid, struct coda_vattr *attrs) in venus_mkdir() argument
214 inp->coda_mkdir.attr = *attrs; in venus_mkdir()
222 *attrs = outp->coda_mkdir.attr; in venus_mkdir()
270 struct CodaFid *newfid, struct coda_vattr *attrs) in venus_create() argument
293 *attrs = outp->coda_create.attr; in venus_create()
/fs/nfsd/
Dxdr.h16 struct iattr attrs; member
43 struct iattr attrs; member
73 struct iattr attrs; member
Dxdr3.h14 struct iattr attrs; member
51 struct iattr attrs; member
61 struct iattr attrs; member
91 struct iattr attrs; member
Dvfs.h63 char *name, int len, struct iattr *attrs,
66 char *name, int len, struct iattr *attrs,
71 char *name, int len, struct iattr *attrs,
Dnfsproc.c62 struct iattr *iap = &argp->attrs; in nfsd_proc_setattr()
68 argp->attrs.ia_valid, (long) argp->attrs.ia_size); in nfsd_proc_setattr()
234 struct iattr *attr = &argp->attrs; in nfsd_proc_create()
479 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd_proc_mkdir()
482 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd_proc_mkdir()
Dnfs3proc.c75 nfserr = nfsd_setattr(rqstp, &resp->fh, &argp->attrs, in nfsd3_proc_setattr()
225 attr = &argp->attrs; in nfsd3_proc_create()
258 argp->attrs.ia_valid &= ~ATTR_SIZE; in nfsd3_proc_mkdir()
262 &argp->attrs, S_IFDIR, 0, &resp->fh); in nfsd3_proc_mkdir()
317 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
Dnfsxdr.c230 p = decode_sattr(p, &args->attrs); in nfssvc_decode_sattrargs()
341 p = decode_sattr(p, &args->attrs); in nfssvc_decode_createargs()
390 p = decode_sattr(p, &args->attrs); in nfssvc_decode_symlinkargs()
Dnfs3xdr.c291 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_sattrargs()
426 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_createargs()
445 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_mkdirargs()
462 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_symlinkargs()
514 p = decode_sattr3(p, &args->attrs); in nfs3svc_decode_mknodargs()
/fs/sdcardfs/
Dsdcardfs.h561 struct iattr attrs; in prepare_dir() local
579 attrs.ia_uid = make_kuid(&init_user_ns, uid); in prepare_dir()
580 attrs.ia_gid = make_kgid(&init_user_ns, gid); in prepare_dir()
581 attrs.ia_valid = ATTR_UID | ATTR_GID; in prepare_dir()
583 notify_change2(parent.mnt, dent, &attrs, NULL); in prepare_dir()
/fs/reiserfs/
Dxattr.c333 struct iattr *attrs = data; in chown_one_xattr() local
334 int ia_valid = attrs->ia_valid; in chown_one_xattr()
342 attrs->ia_valid &= (ATTR_UID|ATTR_GID); in chown_one_xattr()
343 err = reiserfs_setattr(dentry, attrs); in chown_one_xattr()
344 attrs->ia_valid = ia_valid; in chown_one_xattr()
361 int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs) in reiserfs_chown_xattrs() argument
363 int err = reiserfs_for_each_xattr(inode, chown_one_xattr, attrs); in reiserfs_chown_xattrs()
Dxattr.h17 int reiserfs_chown_xattrs(struct inode *inode, struct iattr *attrs);
/fs/btrfs/
Dsysfs.c227 .attrs = btrfs_supported_feature_attrs,
501 struct attribute *attrs[2]; in addrm_unknown_feature_attrs() local
504 .attrs = attrs, in addrm_unknown_feature_attrs()
512 attrs[1] = NULL; in addrm_unknown_feature_attrs()
520 attrs[0] = &fa->kobj_attr.attr; in addrm_unknown_feature_attrs()
/fs/ocfs2/cluster/
Dsys.c52 .attrs = o2cb_attrs,

12